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:[EMAIL PROTECTED] > Sent: Sunday, March 02, 2003 9:41 PM > To: [EMAIL PROTECTED] > 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> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php