when I use array_rand, the output is the position of the item in the array starting with 0 instead of the item itself. i.e.
$array=array(5,10,15,20);
$newarray=array_rand($array);
print $newarray;
the output for 5 is 0, for 10 is 1, for 15 is 2, and for 20 is 3
I would like the output to be the number in the array, am I missing something?