Switch function problem
| From: | Stephen Goddard | Date: | Wed, 11 Jun 2003 11:48:15 +0000 |
| Subject: | Switch function problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-151048@lists.php.net to get a copy of this message | ||
Hi Folks,
Anyone know if you can use operators in a switch function? eg.
switch ($category){
case "FFS" || "FHG" || "FRG":
$soldID = "SFFS";
break;
case "DPT" || "DL" || "DF" || "DI" || "DO":
$soldID = "SDPT";
break;
}
Cheers