Created
February 25, 2013 19:19
-
-
Save whyisjake/5032413 to your computer and use it in GitHub Desktop.
Simple image swapper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$arr = array('http://placekitten.com/300/250', 'http://placekitten.com/400/150'); | |
$shuffle = array_rand($arr, 1); | |
// print_r($shuffle); | |
echo '<img src="' . esc_url( $arr[$shuffle] ) . '" />'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment