Does anyone here knows how to shuffle string (random output string) from an array like, I have this array (refer below)
$cars = array("Volvo", "BMW", "Toyota");
function random_string(){
//here a function to randomize or shuffle the items from the $cars array
return $random_string;
}
echo random_string()
any help, suggestions, recommendations, clues, ideas is highly appreciated. Thank you.
array_rand()? -echo $cars[array_rand($cars, 1)];