[PHP-DOC] cvs: phpdoc /en/language control-structures.xml From: Sara Golemon (php <email protected>)
Date: 11/30/02

pollita Sat Nov 30 11:42:10 2002 EDT

  Modified files:
    /phpdoc/en/language control-structures.xml
  Log:
  Documentation Bug #8353
  "Documentation claims only a copy of the original array is worked on with foreach(), yet internal pointer *IS* advanced."
  
  
Index: phpdoc/en/language/control-structures.xml
diff -u phpdoc/en/language/control-structures.xml:1.65 phpdoc/en/language/control-structures.xml:1.66
--- phpdoc/en/language/control-structures.xml:1.65 Thu Sep 26 09:56:52 2002
+++ phpdoc/en/language/control-structures.xml Sat Nov 30 11:42:10 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.65 $ -->
+<!-- $Revision: 1.66 $ -->
  <chapter id="control-structures">
   <title>Control Structures</title>
 
@@ -517,7 +517,11 @@
       the specified array, not the array itself, therefore the array
       pointer is not modified as with the <function>each</function>
       construct and changes to the array element returned are not
- reflected in the original array.
+ reflected in the original array. However, the internal pointer
+ of the original array <emphasis>is</emphasis> advanced with
+ the processing of the array. Assuming the foreach loop runs
+ to completion, the array's internal pointer will be at the
+ end of the array.
      </para>
     </note>
    </para>

-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php