note 119638 added to control-structures.switch
| From: | lawrencestewart1 at gmail dot com | Date: | Fri, 22 Jul 2016 21:43:28 +0000 |
| Subject: | note 119638 added to control-structures.switch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206082@lists.php.net to get a copy of this message | ||
just a warning / note I found with a bit of unexpected behavior
switch(abs($x)) {
case(0 >= 1):
echo 'this evaluates to true';
break;
}
----
Server IP: 72.52.91.14
Probable Submitter: 75.155.180.138
----
Manual Page -- http://php.net/manual/en/control-structures.switch.php
Edit -- https://master.php.net/note/edit/119638
Del: integrated -- https://master.php.net/note/delete/119638/integrated
Del: useless -- https://master.php.net/note/delete/119638/useless
Del: bad code -- https://master.php.net/note/delete/119638/bad+code
Del: spam -- https://master.php.net/note/delete/119638/spam
Del: non-english -- https://master.php.net/note/delete/119638/non-english
Del: in docs -- https://master.php.net/note/delete/119638/in+docs
Del: other reasons-- https://master.php.net/note/delete/119638
Reject -- https://master.php.net/note/reject/119638
Search -- https://master.php.net/manage/user-notes.php