cvs: phpdoc /en/language control-structures.xml

From: Date: Fri, 17 Aug 2007 21:58:33 +0000
Subject: cvs: phpdoc /en/language control-structures.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969377660@lists.php.net to get a copy of this message
vrana Fri Aug 17 21:58:33 2007 UTC Modified files: /phpdoc/en/language control-structures.xml Log: Remove foreach references outside <note> http://cvs.php.net/viewvc.cgi/phpdoc/en/language/control-structures.xml?r1=1.146&r2=1.147&diff_format=u Index: phpdoc/en/language/control-structures.xml diff -u phpdoc/en/language/control-structures.xml:1.146 phpdoc/en/language/control-structures.xml:1.147 --- phpdoc/en/language/control-structures.xml:1.146 Fri Aug 17 08:29:05 2007 +++ phpdoc/en/language/control-structures.xml Fri Aug 17 21:58:32 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.146 $ --> +<!-- $Revision: 1.147 $ --> <chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Control Structures</title> @@ -549,13 +549,15 @@ array. Assuming the foreach loop runs to completion, the array's internal pointer will be at the end of the array. </para> - <para> - As of PHP 5, you can easily modify array's elements by preceding - <literal>$value</literal> with &amp;. This will assign - <link linkend="language.references">reference</link> instead of copying - the value. - <informalexample> - <programlisting role="php"> + </note> + </para> + <para> + As of PHP 5, you can easily modify array's elements by preceding + <literal>$value</literal> with &amp;. This will assign + <link linkend="language.references">reference</link> instead of copying + the value. + <informalexample> + <programlisting role="php"> <![CDATA[ <?php $arr = array(1, 2, 3, 4); @@ -565,12 +567,10 @@ // $arr is now array(2, 4, 6, 8) ?> ]]> - </programlisting> - </informalexample> - This is possible only if iterated array can be referenced (i.e. is - variable). - </para> - </note> + </programlisting> + </informalexample> + This is possible only if iterated array can be referenced (i.e. is + variable). </para> <para> <note>

« previous php.doc (#969377660) next »