Index: control-structures.xml =================================================================== RCS file: /repository/phpdoc/en/language/control-structures.xml,v retrieving revision 1.131 diff -u -r1.131 control-structures.xml --- control-structures.xml 12 Feb 2006 19:52:23 -0000 1.131 +++ control-structures.xml 28 Mar 2006 15:40:55 -0000 @@ -421,6 +421,10 @@ statement instead of using the for truth expression. + + If you want to execute multiple expressions in expr1 + and expr3, you can separate them using commas. + Consider the following examples. All of them display numbers from 1 to 10: @@ -456,7 +460,10 @@ /* example 4 */ -for ($i = 1; $i <= 10; print $i, $i++); +for ($i = 1, $j = 0; $i <= 10; $j += $i, print $i, $i++); + +// $j will contain the sum + ?> ]]>