simp Thu Mar 30 02:09:59 2006 UTC
Modified files:
/phpdoc/en/language control-structures.xml
Log:
bug #36877
http://cvs.php.net/viewcvs.cgi/phpdoc/en/language/control-structures.xml?r1=1.131&r2=1.132&diff_format=u
Index: phpdoc/en/language/control-structures.xml
diff -u phpdoc/en/language/control-structures.xml:1.131
phpdoc/en/language/control-structures.xml:1.132
--- phpdoc/en/language/control-structures.xml:1.131 Sun Feb 12 19:52:23 2006
+++ phpdoc/en/language/control-structures.xml Thu Mar 30 02:09:58 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.131 $ -->
+<!-- $Revision: 1.132 $ -->
<chapter id="language.control-structures">
<title>Control Structures</title>
@@ -411,7 +411,8 @@
evaluated (executed).
</simpara>
<simpara>
- Each of the expressions can be empty.
+ Each of the expressions can be empty, expr1 and expr3 may contain multiple
+ expressions separated by commas.
<varname>expr2</varname> being empty means the loop should
be run indefinitely (PHP implicitly considers it as
&true;, like C). This may not be as useless as
@@ -456,7 +457,7 @@
/* example 4 */
-for ($i = 1; $i <= 10; print $i, $i++);
+for ($i = 1, $j = 0; $i <= 10; $j += $i, print $i, $i++);
?>
]]>
</programlisting>