note 31282 added to control-structures.switch
| From: | php-general at lists dot php dot net | Date: | Wed, 16 Apr 2003 10:23:22 +0000 |
| Subject: | note 31282 added to control-structures.switch | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46678@lists.php.net to get a copy of this message | ||
Hi.
It sims that swith function doesn't work correctly when you use more then one value in case:
switch($c) {
case "i"||"n": echo "-entered-";
}
--
http://www.php.net/manual/en/control-structures.switch.php
http://master.php.net/manage/user-notes.php?action=edit+31282
http://master.php.net/manage/user-notes.php?action=delete+31282
http://master.php.net/manage/user-notes.php?action=reject+31282