I have script which needs to find the star performer of the month.
This is sample data
$data = array (
[0] = array(
"tasks_done" => 5,
"rating" => 5),
[1] = array(
"tasks_done" => 4,
"rating" => 5),
[2] = array(
"tasks_done" => 3,
"rating" => 5),
[3] = array(
"tasks_done" => 5,
"rating" => 5)
);
So the question is to find the person with max tasks done and max number of rating. Is this possible using any algorithm of by simple php code.
References Sample to find max number in array :
find max() of specific multidimensional array value in php
But nothing seems to work. Any help is appreciated.