From 0e75f7dc5cd29e3edd40da1c0e6a700e25c06e28 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Fri, 31 Aug 2007 19:50:35 +0000 Subject: [PATCH] - Fixed bug#42504 ('switch' manual page) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@242009 c90b9560-bf6c-de11-be94-00142212c4b1 --- appendices/comparisons.xml | 6 +++--- language/control-structures.xml | 8 +++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/appendices/comparisons.xml b/appendices/comparisons.xml index ec32c5c5fb..361c0f5cba 100644 --- a/appendices/comparisons.xml +++ b/appendices/comparisons.xml @@ -1,5 +1,5 @@ - + PHP type comparison tables @@ -191,7 +191,7 @@ - +
Loose comparisons with <literal>==</literal> @@ -398,7 +398,7 @@ -
+
Strict comparisons with <literal>===</literal> diff --git a/language/control-structures.xml b/language/control-structures.xml index 2434ea2211..dfe663e8d4 100644 --- a/language/control-structures.xml +++ b/language/control-structures.xml @@ -1,5 +1,5 @@ - + Control Structures @@ -852,6 +852,12 @@ while ($i++ < 5) { the outer loop, use continue 2. + + + Note that switch/case does + loose comparision. + + The following two examples are two different ways to write the same thing, one using a series of if and