RE: [PHP] Switch function problem

From: Date: Wed, 11 Jun 2003 11:53:29 +0000
Subject: RE: [PHP] Switch function problem
Groups: php.general 
Request: Send a blank email to php-general+get-151051@lists.php.net to get a copy of this message
> -----Original Message----- > From: Stephen Goddard [mailto:stephen@netsmartsales.com] > Sent: 11 June 2003 12:48 > To: php-general@lists.php.net > Subject: [PHP] Switch function problem > > > Hi Folks, > > Anyone know if you can use operators in a switch function? eg. No. Do this: switch ($category){ case "FFS": case "FHG": case "FRG": $soldID = "SFFS"; break; case "DPT": case "DL": case "DF": case "DI": case "DO": $soldID = "SDPT"; break; } Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#151051) next »