The switch-case statement is an alternative to the if-elseif-else statement, which does almost the same thing. The switch-case statement tests a variable against a series of values until it finds a match, and then executes the block of code corresponding to that match.
Below is example to display a different message for each month.
$today = date(“m”);
echo “Current month is January.”;
echo “Current month is February.”;
echo “Current month is March.”;
echo “It will return if case dows not exits.”;
Use break to prevent the code from running into the next case automatically