Switch Statement || Case with multiple values?

From: Date: Mon, 03 Mar 2003 02:40:52 +0000
Subject: Switch Statement || Case with multiple values?
Groups: php.general 
Request: Send a blank email to php-general+get-137811@lists.php.net to get a copy of this message
Hey all. In Cold Fusion I was able to do the following: <CFSWITCH expression = #action#> <CFCASE value = "getUpdate,getDelete"> Do Stuff........ </CFCASE> </CFSWITCH> Note the comma delimited set of values for the case. Is there a way to do this in php?( i.e. if any of the comma delimited case values match the switch expression, proceed with the specified case instructions) It's kind of cumbersome breaking out 5 cases when in CF I can combine them into one........ Let me know. --Noah --

« previous php.general (#137811) next »