Return to Snippet

Revision: 311
at July 9, 2006 05:13 by shamrog12


Initial Code
<?php 
    $images=array('0.jpg','1.jpg','2.jpg'); 
    $image=$images[array_rand($images)]; 
    echo '<img src="path/to/'.$image.'" alt="Image: '.$image.'" />'; 
?>

Initial URL

                                

Initial Description

                                

Initial Title
PHP Random Image

Initial Tags

                                

Initial Language
PHP