Professional Documents
Culture Documents
The Switch Statement SoloLearn
The Switch Statement SoloLearn
case 'Wed':
case 'Thu':
echo 'Working day';
break;
case 'Fri':
echo 'Friday!';
break;
default:
echo 'Weekend!';
}
Try it Yourself
The example above will have the same output if $day equals 'Tue',
'Wed', or 'Thu'.
Back Continue
Well done!