From 6495ac90b47487b86574d2273a9b2238dc0827cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Luciano=20Nogueira=20de=20G=C3=B3is?= Date: Thu, 7 Apr 2016 20:31:00 +0000 Subject: [PATCH] adding tags into apropriated places git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@338959 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures/switch.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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.