I need to get a random value with php function *array_rand*.
$input = array("Neo", "Morpheus", "Trinity", "Cypher", "Tank");
$rand_keys = array_rand($input, 2);
echo $input[$rand_keys[0]] . "\n";
echo $input[$rand_keys[1]] . "\n";
How to can I get value from this? Like a $input[$rand_keys];
Thanks in advance.