RE: [PHP] Switch Statement || Case with multiple values?

From: Date: Mon, 03 Mar 2003 00:08:16 +0000
Subject: RE: [PHP] Switch Statement || Case with multiple values?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137819@lists.php.net to get a copy of this message
Check the manual: switch($foo) { case "fee": case "fie": ... break; case "fo": ... case "fum": ... break; } fee & fie are tied together, fie will also run the code presented by fum ... Even more flexible than comma delimited values ... > -----Original Message----- > From: CF High [mailto:noah@newminddesign.com] > Sent: Sunday, March 02, 2003 9:41 PM > To: php-general@lists.php.net > Subject: [PHP] Switch Statement || Case with multiple values? > > > Hey all. > > In Cold Fusion I was able to do the following: > > <CFSWITCH expression = #action#> > > <CFCASE value = "getUpdate,getDelete"> > Do Stuff........ > </CFCASE> > > </CFSWITCH> >

« previous php.general (#137819) next »