vrana Thu Apr 14 03:49:44 2005 EDT
Modified files: /phpdoc/en/language control-structures.xml Log: foreach with referenced arrays (bug #29686) http://cvs.php.net/diff.php/phpdoc/en/language/control-structures.xml?r1=1.115&r2=1.116&ty=u Index: phpdoc/en/language/control-structures.xml diff -u phpdoc/en/language/control-structures.xml:1.115 phpdoc/en/language/control-structures.xml:1.116 --- phpdoc/en/language/control-structures.xml:1.115 Tue Apr 5 18:04:02 2005 +++ phpdoc/en/language/control-structures.xml Thu Apr 14 03:49:42 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.115 $ --> +<!-- $Revision: 1.116 $ --> <chapter id="language.control-structures"> <title>Control Structures</title> @@ -532,7 +532,8 @@ <para> <note> <para> - Also note that <literal>foreach</literal> operates on a copy of + Unless the array is <link linkend="language.references">referenced</link>, + <literal>foreach</literal> operates on a copy of the specified array and not the array itself. Therefore, the array pointer is not modified as with the <function>each</function> construct, and changes to the array