Looping through multiple flat arrays at the same time – Php
I have this attempt using foreach function. <?php $persons = array("John","Kevin","Daniel"); $cars = array("Volvo", "BMW", "Toyota"); $colors = array("red", "blue", "green"); foreach($persons as $person){ foreach($cars as $car){ foreach($colors as $color){ echo "I'm $person and my car $car is color <span…