mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
bug #36877
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@210382 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
7a2bcc0af2
commit
29cf2d82f2
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.131 $ -->
|
||||
<!-- $Revision: 1.132 $ -->
|
||||
<chapter id="language.control-structures">
|
||||
<title>Control Structures</title>
|
||||
|
||||
|
@ -411,7 +411,8 @@ for (expr1; expr2; expr3)
|
|||
evaluated (executed).
|
||||
</simpara>
|
||||
<simpara>
|
||||
Each of the expressions can be empty.
|
||||
Each of the expressions can be empty, expr1 and expr3 may contain multiple
|
||||
expressions separated by commas.
|
||||
<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
|
||||
|
@ -456,7 +457,7 @@ for (; ; ) {
|
|||
|
||||
/* example 4 */
|
||||
|
||||
for ($i = 1; $i <= 10; print $i, $i++);
|
||||
for ($i = 1, $j = 0; $i <= 10; $j += $i, print $i, $i++);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue