There are 2 arrays with the names of animals:
$m = array(5) { [0]=> string(13) "Panthera onca" [1]=> string(9) "Gray wolf" [2]=> string(12) "Bengal tiger" [3]=> string(10) "Brown bear" [4]=> string(22) "Aptenodytes patagonica" } $n = array(5) { [0]=> string(10) "Koala bear" [1]=> string(24) "Haliaeetus leucocephalus" [2]=> string(22) "Ailuropoda melanoleuca" [3]=> string(15) "Bos primigenius" [4]=> string(20) "Aptenodytes forsteri" } Randomly intermix the first and second words of the names of animals so that at the exit we get fictional, fantasy animals. The name of a fantasy animal must begin with the first word of the real name of the animal. It is important that each piece is used and not repeated more than once. It's okay if, as a result of mixing, sometimes you get real animals. Display these animals on the screen.
I do not understand how to do it. 3 day puzzled. At least tell me how it can be implemented. Thanks in advance for the answers)