mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
foreach with referenced arrays (bug #29686)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@184323 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
22cd3ffc07
commit
15f11b0075
1 changed files with 3 additions and 2 deletions
|
@ -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 @@ foreach (array_expression as $key => $value)
|
|||
<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
|
||||
|
|
Loading…
Reference in a new issue