diff --git a/language/control-structures/continue.xml b/language/control-structures/continue.xml index 3467bec505..392bd5bd01 100644 --- a/language/control-structures/continue.xml +++ b/language/control-structures/continue.xml @@ -20,7 +20,7 @@ continue 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. @@ -56,15 +56,15 @@ while ($i++ < 5) { ?> ]]> - - - - Omitting the semicolon after continue can lead to - confusion. Here's an example of what you shouldn't do. - - - - + + + + Omitting the semicolon after continue can lead to + confusion. Here's an example of what you shouldn't do. + + + + ]]> - - - One can expect the result to be: - - + + + One can expect the result to be: + + - - - but this script will output: - - + + + but this script will output: + + - - - because the entire continue print "$i\n"; is evaluated - as a single expression, and so print is called only - when $i == 2 is true. (The return value of - print is passed to continue as the - numeric argument.) - - - - - - Changelog for <literal>continue</literal> - - - - &Version; - &Description; - - - - - 5.4.0 - - Removed the ability to pass in variables (e.g., $num = 2; continue $num;) - as the numerical argument. - - - - -
-
+ + + because the entire continue print "$i\n"; is evaluated + as a single expression, and so print is called only + when $i == 2 is true. (The return value of + print is passed to continue as the + numeric argument.) + + + + + + Changelog for <literal>continue</literal> + + + + &Version; + &Description; + + + + + 5.4.0 + + Removed the ability to pass in variables (e.g., $num = 2; continue $num;) + as the numerical argument. + + + + +
+