note 15622 rejected from control-structures.switch by zak

From: Date: Mon, 24 Sep 2001 04:32:58 +0000
Subject: note 15622 rejected from control-structures.switch by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-18229@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; ... }

« previous php.notes (#18229) next »