Revision: 40336
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 31, 2011 00:56 by contactpatbrown
Initial Code
<?php $images = array(1=>1, 2, 3, 4, 5); for ($i= 0; $i < 3; $i++) { $nr[$i] = array_rand($images,1); unset($images[$nr[$i]]); ?> <img src="http://images_path/imagename_<?php echo $nr[$i] ?>.png" width='image_width' height='image_height' alt='image_alt_text' /> <?php } ?>
Initial URL
Initial Description
Initial Title
php random images with known names and locations
Initial Tags
php, textmate, images
Initial Language
Other