$day = "Monday"; switch ($day) { case "Monday": echo "It's the start of the week."; break; case "Friday": echo "It's almost the weekend!"; break; default: echo "It's a regular day."; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter