having this array:
$materias= array (
array("nombre"=>"Juan","Programacion"=>8,"Redes"=>7,"Diseño Web"=>10,"Conectividad"=>9,"Idiomas"=>8),
array("nombre"=>"Sofia","Programacion"=>9,"Redes"=>10,"Diseño Web"=>6,"Conectividad"=>8,"Idiomas"=>7),
array("nombre"=>"Santiago","Programacion"=>10,"Redes"=>10,"Diseño Web"=>9,"Conectividad"=>7,"Idiomas"=>9),
array("nombre"=>"Maria","Programacion"=>11,"Redes"=>12,"Diseño Web"=>10,"Conectividad"=>9,"Idiomas"=>10),
array("nombre"=>"Damian","Programacion"=>7,"Redes"=>9,"Diseño Web"=>10,"Conectividad"=>6,"Idiomas"=>6),
);
I want to obtain the maximum grade per subject and show which student corresponds. I tried with array_columns
and max
and I got the maximum score but I can not show it next to that the name of who it belongs to.