<?php $temperature = 25; if ($temperature > 30) { echo "It's hot outside!"; } elseif ($temperature >= 20 && $temperature <= 30) { echo "The weather is pleasant."; } else { echo "It's cold outside."; } ?>
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