From 2536c56c28db4bce5ec9915134a197a781047d7f Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 21 Nov 2007 16:58:20 +0000 Subject: [PATCH] Invalid description of comma in for (bug #42644) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@246631 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index a2793ccb10..4d5b067c96 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -415,10 +415,8 @@ for (expr1; expr2; expr3) Each of the expressions can be empty or contain multiple - expressions separated by commas. Comma separated expressions in expr2 - are treated similarly to being separated by the || operator but has a - lower precedence than ||. + expressions separated by commas. In expr2, all + expressions are evaluated but the result is taken from the last part. expr2 being empty means the loop should be run indefinitely (PHP implicitly considers it as &true;, like C). This may not be as useless as