mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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
This commit is contained in:
parent
2f2f95ba7c
commit
2536c56c28
1 changed files with 3 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.155 $ -->
|
||||
<!-- $Revision: 1.156 $ -->
|
||||
<chapter xml:id="language.control-structures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Control Structures</title>
|
||||
|
||||
|
@ -415,10 +415,8 @@ for (expr1; expr2; expr3)
|
|||
</simpara>
|
||||
<simpara>
|
||||
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 <link
|
||||
linkend="language.operators.logical">|| operator</link> but has a
|
||||
lower precedence than ||.
|
||||
expressions separated by commas. In <varname>expr2</varname>, all
|
||||
expressions 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