Skip to content

Instantly share code, notes, and snippets.

@samhotchkiss
Created February 28, 2015 00:05
Show Gist options
  • Save samhotchkiss/8601c5dd8bde94267a40 to your computer and use it in GitHub Desktop.
Save samhotchkiss/8601c5dd8bde94267a40 to your computer and use it in GitHub Desktop.
Play a random Carlton Dance gif...
<?php
$dance_options = array(
'http://media.giphy.com/media/BcUeucif6Pmdq/giphy.gif',
'http://media.giphy.com/media/IVORu79kc8sbC/giphy.gif',
'http://media.giphy.com/media/pa37AAGzKXoek/giphy.gif',
'http://media.giphy.com/media/eS8KpVTznwBpe/giphy.gif',
'http://media.giphy.com/media/XHsnuaGQsSuPu/giphy.gif',
'http://media.giphy.com/media/ojFNRsqDe6YnK/giphy.gif',
'http://media.giphy.com/media/oFJZofr6WA57W/giphy.gif',
'http://media.giphy.com/media/K9N8ErSzG2dj2/giphy.gif'
);
echo '<img src="' . $dance_options[ array_rand( $dance_options ) ] . '" />';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment