Possible Duplicate:
How to use a switch case 'or' in PHP?
Is it possible to have multiple conditions on single switch case for example
switch($device) {
case 'blackberry':
break;
case 'iphone' || 'ipod' || 'android':
break;
}
Thanks for the help.
Not with the syntax you are suggesting, you’d have to create multiple cases that point to the same action, for example: