$myarray=
Array ( [0] => Array ( [id] => 4
[name] => ABC
[point] => 2111
) [1] => Array ( [id] => 5
[name] => XYZ
[point] => 1305 )
$points = array_map(function($myarray) {
return $store[0];
}, $myarray);
$maxpoint=max($points)
But how will I get the id
of the person with max points?
Basically I need to get the row (or inner array) where the point is maximum.
How is it possible to perform mysql like sorting in this array with only using php
?
Please Help