Answers for "dualcase php switch"

PHP
21

php switch

$age=20;
switch ($age) {
	case 19:
        echo "Age is 18";
        break;
    case 20:
        echo "Age is 20";
        break;
    case 21:
        echo "Age is 21";
        break;
}
Posted by: Guest on July-01-2019
-1

dualcase php switch

case 'car':
case 'ferrari':
    print("car or ferrari");
    break;
Posted by: Guest on June-16-2020

Browse Popular Code Answers by Language