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
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
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
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
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:
5 matches
Mail list logo