array_rand problem
Posted: Tue Dec 22, 2009 10:47 pm
This works fine:
But this doesn't:
Any idea why?
Code: Select all
$rand_keys = array_rand($spin, 2);
echo $spin[$rand_keys[0]];
echo $spin[$rand_keys[1]];Code: Select all
$rand_keys = array_rand($spin, 1);
echo $spin[$rand_keys[0]];