note 53726 deleted from control-structures.switch by jome

From: Date: Tue, 18 Oct 2005 19:34:26 +0000
Subject: note 53726 deleted from control-structures.switch by jome
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97190@lists.php.net to get a copy of this message
Note Submitter: grins1 at hotmail dot com ---- Just so its out here for all to see, a way to check for multiple conditions per case using the example from 04-Jun-2005 03:24: switch ($month_name) { case ($month_name === "Jan" || $month_name === "January"): $month = "1"; break; } With or without the parenthesis is fine. I wasn't sure until I went through the motions and played around with it.

« previous php.notes (#97190) next »