svn: /phpdoc/en/trunk/language/control-structures/ continue.xml
| From: | Shein Alexey | Date: | Sun, 04 Mar 2012 16:00:31 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/control-structures/ continue.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-9828@lists.php.net to get a copy of this message | ||
shein Sun, 04 Mar 2012 16:00:31 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=323873
Log:
Whitespace changes.
Changed paths:
U phpdoc/en/trunk/language/control-structures/continue.xml
Modified: phpdoc/en/trunk/language/control-structures/continue.xml
===================================================================
--- phpdoc/en/trunk/language/control-structures/continue.xml 2012-03-04 15:54:59 UTC (rev 323872)
+++ phpdoc/en/trunk/language/control-structures/continue.xml 2012-03-04 16:00:31 UTC (rev 323873)
@@ -20,7 +20,7 @@
<simpara>
<literal>continue</literal> accepts an optional numeric argument
which tells it how many levels of enclosing loops it should skip
- to the end of.
+ to the end of.
</simpara>
<note>
<para>
@@ -56,15 +56,15 @@
?>
]]>
</programlisting>
- </informalexample>
- </para>
- <para>
- Omitting the semicolon after <literal>continue</literal> can lead to
- confusion. Here's an example of what you shouldn't do.
- </para>
- <para>
- <informalexample>
- <programlisting role="php">
+ </informalexample>
+ </para>
+ <para>
+ Omitting the semicolon after <literal>continue</literal> can lead to
+ confusion. Here's an example of what you shouldn't do.
+ </para>
+ <para>
+ <informalexample>
+ <programlisting role="php">
<![CDATA[
<?php
for ($i = 0; $i < 5; ++$i) {
@@ -74,57 +74,57 @@
}
?>
]]>
- </programlisting>
- <para>
- One can expect the result to be:
- </para>
- <screen>
+ </programlisting>
+ <para>
+ One can expect the result to be:
+ </para>
+ <screen>
<![CDATA[
0
1
3
4
]]>
- </screen>
- <para>
- but this script will output:
- </para>
- <screen>
+ </screen>
+ <para>
+ but this script will output:
+ </para>
+ <screen>
<![CDATA[
2
]]>
- </screen>
- <para>
- because the entire <literal>continue print "$i\n";</literal> is
evaluated
- as a single expression, and so <function>print</function> is called only
- when <literal>$i == 2</literal> is true. (The return value of
- <literal>print</literal> is passed to <literal>continue</literal> as
the
- numeric argument.)
- </para>
- </informalexample>
- </para>
- <para>
- <table>
- <title>Changelog for <literal>continue</literal></title>
- <tgroup cols="2">
- <thead>
- <row>
- <entry>&Version;</entry>
- <entry>&Description;</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>5.4.0</entry>
- <entry>
- Removed the ability to pass in variables (e.g., <literal>$num = 2; continue
$num;</literal>)
- as the numerical argument.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </para>
+ </screen>
+ <para>
+ because the entire <literal>continue print "$i\n";</literal> is evaluated
+ as a single expression, and so <function>print</function> is called only
+ when <literal>$i == 2</literal> is true. (The return value of
+ <literal>print</literal> is passed to <literal>continue</literal> as
the
+ numeric argument.)
+ </para>
+ </informalexample>
+ </para>
+ <para>
+ <table>
+ <title>Changelog for <literal>continue</literal></title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>&Version;</entry>
+ <entry>&Description;</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>5.4.0</entry>
+ <entry>
+ Removed the ability to pass in variables (e.g., <literal>$num = 2; continue
$num;</literal>)
+ as the numerical argument.
+ </entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ </para>
</sect1>
<!-- Keep this comment at the end of the file