cvs: phpdoc /en/language control-structures.xml
| From: | Sara Golemon | Date: | Sat, 30 Nov 2002 16:42:10 +0000 |
| Subject: | cvs: phpdoc /en/language control-structures.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969350039@lists.php.net to get a copy of this message | ||
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>