RE: [PHP] Another problem with conditional statements

From: Date: Fri, 20 Dec 2002 10:56:40 +0000
Subject: RE: [PHP] Another problem with conditional statements
Groups: php.general 
Request: Send a blank email to php-general+get-128969@lists.php.net to get a copy of this message
> -----Original Message----- > From: Rick Emery [mailto:remery@emeryloftus.com] > Sent: 20 December 2002 00:34 > > switch() does not work that way. Switch uses the value in > the parentheses and selects a > CASE based upon that value. Read the manual. > > You will have to use a series of if()-elseif()-else() Not true. Absolutely nothing wrong with using switch in this way -- it's a very neat and useful device. 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 (#128969) next »