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

2003-03-02 Thread CF High
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

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

2003-03-02 Thread Martin Towell
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 Note the comma delimited set of values

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

2003-03-02 Thread Mark Charette
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

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

2003-03-02 Thread Leif K-Brooks
switch($value){ case 'foo': case 'bar': //It's either foo or bar break; } CF High wrote: 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

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

2003-03-02 Thread Mark Charette
Duh. make that fo will also run the code presented by fum ... -Original Message- From: Mark Charette [mailto:[EMAIL PROTECTED] switch($foo) { case fee: case fie: ... break; case fo: ... case fum: