You are on page 1of 1

The Switch Statement 125 Comments

case 'Wed':​
case 'Thu':​
echo 'Working day';​
break;​
case 'Fri':​
echo 'Friday!';​
break;​
default:​
echo 'Weekend!';​
}​

//Outputs "Working day"

Try it Yourself

The example above will have the same output if $day equals 'Tue',
'Wed', or 'Thu'.

Back Continue
Well done!

You might also like