I am trying to shuffle some images using:
shuffle()
Here is the code I have:
<?php
$pictures = array('image/image1', 'image/image2', etc);
srand ((float)microtime()*1000000);
shuffle($pictures);
{
echo '<div align="right"><img src="';
echo $pictures;
echo 'width="226" height="103"></div></td>';
}
?>
It is giving me a broken image. What needs to be changed?