<?php $myVar = 'red'; switch ($myVar) { case 'red': echo 'It is red'; break; case 'blue': echo 'It is blue'; break; case 'green': echo 'It is green'; break; } ?>
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