diff --git a/language/control-structures/switch.xml b/language/control-structures/switch.xml index bed8699827..8d6d748413 100644 --- a/language/control-structures/switch.xml +++ b/language/control-structures/switch.xml @@ -108,7 +108,7 @@ switch ($i) { switch statement executes line by line (actually, statement by statement). In the beginning, no code is executed. Only when a case statement is found - with a value that matches the value of the + whose expression evaluates to a value that matches the value of the switch expression does PHP begin to execute the statements. PHP continues to execute the statements until the end of the switch block, or the first time it sees @@ -196,12 +196,6 @@ switch ($i) { - - 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 - they are dereferenced to a simple type. - The alternative syntax for control structures is supported with switches. For more information, see