View Single Post
Old 03-11-2004, 03:20 PM   #2 (permalink)
bdl
Senior Contributor
 
Join Date: May 2002
Location: vta.ca.usa
Posts: 555
bdl is on a distinguished road
PHP Code:
$array = array('red','yellow','blue','green');

// assumes numerically indexed array
echo $array[rand(0count($array)-1)]; 
bdl is offline   Reply With Quote