I do have the way to get a randomized elements in array:
$array1 = array("Bird", "Animal", "Tower", "Car", "Tree");
$rand_keys = array_rand($input, 4);
echo $array1[$rand_keys[0]] . "\n";
echo $array1[$rand_keys[1]] . "\n";
echo $array1[$rand_keys[2]] . "\n";
echo $array1[$rand_keys[3]] . "\n";
but, if I had 3 arrays those I can randomize their elements, too:
$array1 = array("Bird", "Animal", "Tower", "Car", "Tree");
$array2 = array("Falcon", "Cat", "Man", "Poll", "Sea");
$array3 = array("Lion", "Apple", "Rock", "Ball", "Tea");
How could I get a the vertical randomization of the arrays themselves?
I need the result to be like these patterns:
Car Tree Bird Animal Tower // array1
Man Poll Falcon Cat Sea // array2
Rock Ball Tea Lion Apple // array3
Another one if I refreshed the page:
Lion Apple Rock Ball Tea // array3
Animal Tower Car Tree Bird // array1
Man Cat Sea Poll Falcon // array2