From 44759c7e0a4264cfd921db39975432f38c51ded5 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 21 Nov 2007 16:59:33 +0000 Subject: [PATCH] Clarification of comma in for git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@246632 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/language/control-structures.xml b/language/control-structures.xml index 4d5b067c96..43c45935c2 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -416,7 +416,8 @@ for (expr1; expr2; expr3) Each of the expressions can be empty or contain multiple expressions separated by commas. In expr2, all - expressions are evaluated but the result is taken from the last part. + expressions separated by a comma 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