diff --git a/language/control-structures/switch.xml b/language/control-structures/switch.xml index b692bd4702..bed8699827 100644 --- a/language/control-structures/switch.xml +++ b/language/control-structures/switch.xml @@ -16,8 +16,8 @@ Note that unlike some other languages, the continue statement - applies to switch and acts similar to break. If you - have a switch inside a loop and wish to continue to the next iteration of + applies to switch and acts similar to break. If you + have a switch inside a loop and wish to continue to the next iteration of the outer loop, use continue 2. @@ -41,13 +41,13 @@ 7.0.0 - Multiple default cases will raise a E_COMPILE_ERROR error. + Multiple default cases will raise a E_COMPILE_ERROR error. - + The following two examples are two different ways to write the same thing, one using a series of if and @@ -82,7 +82,7 @@ switch ($i) { - <literal>switch</literal> structure allows usage of strings + <literal>switch</literal> structure allows usage of <type>string</type>s The case expression may be any expression that - evaluates to a simple type, that is, integer or floating-point - numbers and strings. Arrays or objects cannot be used here unless + evaluates to a simple type, that is, integer or floating-point + numbers and strings. Arrays or objects cannot be used here unless they are dereferenced to a simple type.