Greetings EZ members. I recently started learning PHP and I understand how foreach loop work on one dimensional array, but I failed to understand how that can be used on two dimensional array. I have code like this:
<?php
$person = array(
array("Michael","14","New York"),
array("Peter","21","London"),
array("John","30","Moskva")
);
?>
Is there any way to call members of the array to be presented like this:
Michael is 14 years old and he live in New York.
Peter is 21 years old and he live in London.
John is 30 years old and he live in Moskva.