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

From: Date: Sat, 17 Mar 2001 06:46:19 +0000
Subject: cvs: phpdoc /en/language control-structures.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969334721@lists.php.net to get a copy of this message
jmcastagnetto Fri Mar 16 22:46:19 2001 EDT Modified files: /phpdoc/en/language control-structures.xml Log: s/>/&gt;/ in examples Index: phpdoc/en/language/control-structures.xml diff -u phpdoc/en/language/control-structures.xml:1.25 phpdoc/en/language/control-structures.xml:1.26 --- phpdoc/en/language/control-structures.xml:1.25 Fri Mar 16 12:19:31 2001 +++ phpdoc/en/language/control-structures.xml Fri Mar 16 22:46:19 2001 @@ -442,7 +442,7 @@ <informalexample> <programlisting> foreach(array_expression as $value) statement -foreach(array_expression as $key => $value) statement +foreach(array_expression as $key =&gt; $value) statement </programlisting> </informalexample> </para> @@ -501,7 +501,7 @@ echo "Key: $key; Value: $value&lt;br&gt;\n"; } -foreach ($arr as $key => $value) { +foreach ($arr as $key =&gt; $value) { echo "Key: $key; Value: $value&lt;br&gt;\n"; } </programlisting> @@ -526,20 +526,20 @@ $i = 0; /* for illustrative purposes only */ foreach($a as $v) { - print "\$a[$i] => $v.\n"; + print "\$a[$i] =&gt; $v.\n"; } /* foreach example 3: key and value */ $a = array ( - "one" => 1, - "two" => 2, - "three" => 3, - "seventeen" => 17 + "one" =&gt; 1, + "two" =&gt; 2, + "three" =&gt; 3, + "seventeen" =&gt; 17 ); -foreach($a as $k => $v) { - print "\$a[$k] => $v.\n"; +foreach($a as $k =&gt; $v) { + print "\$a[$k] =&gt; $v.\n"; } </programlisting> </informalexample> @@ -1305,3 +1305,6 @@ sgml-local-ecat-files:nil End: --> +<!-- Keep this comment for vi/vim/gvim + vi: et:ts=1:sw=1 +-->

« previous php.doc (#969334721) next »