From 518c0fcfe65b0d8d3ca52708128458383082ad16 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Fri, 19 Oct 2001 10:47:17 +0000 Subject: [PATCH] small clarification regarding each() and reset() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@60229 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/array.xml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/functions/array.xml b/functions/array.xml index 184142811c..118840c72d 100644 --- a/functions/array.xml +++ b/functions/array.xml @@ -1,5 +1,5 @@ - + Array Functions Arrays @@ -2057,7 +2057,9 @@ while (list ($key, $val) = each ($HTTP_POST_VARS)) { After each has executed, the array cursor will be left on the next element of the array, or on the last - element if it hits the end of the array. + element if it hits the end of the array. You have to use + reset if you want to traverse the array + again using each. See also key, list,