mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Clarification of comma in for
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@246632 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
2536c56c28
commit
44759c7e0a
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.156 $ -->
|
||||
<!-- $Revision: 1.157 $ -->
|
||||
<chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Control Structures</title>
|
||||
|
||||
|
@ -416,7 +416,8 @@ for (expr1; expr2; expr3)
|
|||
<simpara>
|
||||
Each of the expressions can be empty or contain multiple
|
||||
expressions separated by commas. In <varname>expr2</varname>, 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.
|
||||
<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
|
||||
|
|
Loading…
Reference in a new issue