How to use a switch case ‘or’ in PHP?

is there such thing (in PHP anyway) for an OR operator in a switch case?

something like..

switch ($value) {

case 1 || 2:
echo 'the value is either 1 or 2';
break;

}

Leave a Reply

*

Hire Me
Follow Me!
Search
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.
Categories