08-22-2008, 05:47 AM
|
#2 (permalink)
|
|
The Wanderer
Join Date: Aug 2008
Location: italy
Posts: 7
Thanks: 0
|
oh yeah i know this smale trick
yo can also do
PHP Code:
<?php $a = array("im1.jpg", "im2.jpg", "blabla.jpg"); srand(time(0)); $rand_int = rand(0, count($a)-1); echo $a[$rand_int]."\n"; ?>
so you don't need images with 1, 2, 3... numeration it's can be more usefull ;)
|
|
|