case select php with multiple switch conditons code example
Example 1: php switch case multiple values per line
<?php
switch ($i) {
case 0:
case 1:
case 2:
echo "i is less than 3 but not negative";
break;
case 3:
echo "i is 3";
}
?>
Example 2: dualcase php switch
case 'car':
case 'ferrari':
print("car or ferrari");
break;