note 76508 added to control-structures.switch
| From: | usera$ at example dot com | Date: | Wed, 18 Jul 2007 17:35:51 +0000 |
| Subject: | note 76508 added to control-structures.switch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128696@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 217.13.201.10
Probable Submitter: 88.76.217.18
----
Manual Page -- http://www.php.net/manual/en/control-structures.switch.php
Edit -- https://master.php.net/note/edit/76508
Del: integrated -- https://master.php.net/note/delete/76508/integrated
Del: useless -- https://master.php.net/note/delete/76508/useless
Del: bad code -- https://master.php.net/note/delete/76508/bad+code
Del: spam -- https://master.php.net/note/delete/76508/spam
Del: non-english -- https://master.php.net/note/delete/76508/non-english
Del: in docs -- https://master.php.net/note/delete/76508/in+docs
Del: other reasons-- https://master.php.net/note/delete/76508
Reject -- https://master.php.net/note/reject/76508
Search -- https://master.php.net/manage/user-notes.php