$colorRange = array('red', 'blue', 'green'); shuffle($colorRange); //usage example echo "<p style='font-size:3em;' class='$colorRange[0]'>hello world!</p>"; //classes (red, blue, green) defined in companion stylesheet
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