php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #69099
Patch doc-bug-69099.patch revision 2015-03-18 18:16 UTC by patrick dot schwisow at gmail dot com
revision 2015-03-18 13:31 UTC by patrick dot schwisow at gmail dot com

Patch doc-bug-69099.patch for Documentation problem Bug #69099

Patch version 2015-03-18 18:16 UTC

Return to Bug #69099 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: patrick.schwisow@gmail.com

Index: language/control-structures/continue.xml
===================================================================
--- language/control-structures/continue.xml	(revision 336087)
+++ language/control-structures/continue.xml	(working copy)
@@ -11,10 +11,14 @@
  </simpara>
  <note>
   <simpara>
-   Note that in PHP the
+   In PHP the
    <link linkend="control-structures.switch">switch</link> statement is
    considered a looping structure for the purposes of
-   <literal>continue</literal>.
+   <literal>continue</literal>. <literal>continue</literal> behaves like
+   <literal>break</literal> (when no arguments are passed). If a
+   <literal>switch</literal> is inside a loop,
+   <literal>continue 2</literal> will continue with the next iteration
+   of the outer loop.
   </simpara>
  </note>
  <simpara>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 17:01:29 2024 UTC