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