note 76508 deleted from control-structures.switch by peehaa
| From: | peehaa@php.net | Date: | Mon, 02 Dec 2013 09:09:58 +0000 |
| Subject: | note 76508 deleted from control-structures.switch by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-197693@lists.php.net to get a copy of this message | ||
Note Submitter: usera$ at example dot com
----
A note as to how the comparisons of case values to the switch value are being made would be useful,
since it appears, the comparison operator === is not available, only ==. That means, according to
the example given, in
switch($a)
...
case 0
statement-0
case FALSE
statment-1
case NULL
statement-2
...
both statement-1 and statement-2 cannot be executed, no matter what the value of $a is, including
FALSE.