note 15622 rejected from control-structures.switch by zak
| From: | zak@php.net | Date: | Mon, 24 Sep 2001 04:32:55 +0000 |
| Subject: | note 15622 rejected from control-structures.switch by zak | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18228@lists.php.net to get a copy of this message | ||
Is there an equal to the
if ($a == "hello" || $a == "hi") { .. }
for the switch statement? I tried things like this, but without the hoped success:
switch ($a)
{
...
case "hello" || "hi":
..
break;
...
}