Problem: How to use a switch case 'or' in PHP?
Solution: This can be achieved in 2 ways. They are as follows:
Method 1: Without using break keyword in one of the switch case.
Example: Output:
The option is either 1 or 2.
Method 2: Using or operator in switch case.
Example: Output: