Created
April 10, 2012 21:43
-
-
Save karloscarweber/2354784 to your computer and use it in GitHub Desktop.
A slide Shuffler.
This file contains 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 // PHP | |
// Shuffle some html, then echo them to the screen. | |
// why? because It's flipping easy! | |
$slides = array( | |
'<img src="/img/pic1.jpg" />', | |
'<img src="/img/pic2.jpg" />', | |
'<img src="/img/pic3.jpg" />', | |
'<img src="/img/pic4.jpg" />', | |
'<img src="/img/pic5.jpg" />'); | |
shuffle($slides); | |
foreach( $slides as $slide){ | |
echo $slide; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment