I need to find out the oldest person
/*I want to find out the oldest person in a multidimensional array, I thought of using a foreach loop which is special for iterating the arrays, in addition to that, the foreach loop must be inside a function so that it is then called I do not know which is the most appropriate way to build the matrix, so far I have found three ways but I still cannot find the largest number first form of array and the one I have the most option since it is associative*/ <?php $family = array ( array('name'=>"Guillermo ",'surname'=>"Acosta Pacheco ",'age'=>79), array('name'=>"Ruth ",'surname'=>"Bejarano Guevara ",'age'=>57), array('name'=>"Nancy ",'surname'=>"Benavides",'age'=>40), array('name'=>"Santiago ",'surname'=>"Acosta Patiño",'age'=>20), array('name'=>"Luciana ",'surname'=>"Acosta Patiño",'age'=>11), array('name'=>"Antonella ",'surname'=>"Acosta Patiño",'age'=>4), array('name'=>"María José ",'surname'=>"Amador Acosta",'age'=>10), array('name'=>"Valentina ",'surname'=>"Acosta Calderon",'age'=>8), array('name'=>"Isabella ",'surname'=>"Acosta Chavez",'age'=>5), array('name'=>"Salomé ",'surname'=>"Solorzano Acosta",'age'=>2), ); ?> /*in this second form of array it would be the basic of predefined ones, but it is not practical for that exercise*/ <?php $family = array ( array("Guillermo ","Acosta Pacheco ",79), array("Ruth ","Bejarano Guevara ",57), array("Nancy ","Benavides",40), array("Santiago ","Acosta Patiño",20), array("Luciana ","Acosta Patiño",11), array("Antonella ","Acosta Patiño",4), array("María José ","Amador Acosta",10), array("Valentina ","Acosta Calderón",8), array("Isabella ","Acosta Chavez", 5), array("Salomé ","Solorzano Acosta",2) ); ?> /*and there is the last form of array which is to declare arrays inside another array as if they were a multidimensional array made up of predetermined one-dimensional arra