php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch doc-bug-69099.patch for Documentation problem Bug #69099Patch version 2015-03-18 13:31 UTC Return to Bug #69099 | Download this patchThis patch is obsolete Obsoleted by patches: Patch Revisions:Developer: patrick.schwisow@gmail.comIndex: language/control-structures/continue.xml =================================================================== --- language/control-structures/continue.xml (revision 336087) +++ language/control-structures/continue.xml (working copy) @@ -11,10 +11,13 @@ </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 you have a + <literal>switch</literal> inside a loop and wish to continue to the next + iteration of the outer loop, use <literal>continue 2</literal>. </simpara> </note> <simpara> |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Sun Apr 28 12:01:28 2024 UTC |