Given a simple array like
$testarr = array("Donna"=>3, "Luke" => 4, "Pete" =>4, "Lola" => 1);
How can I keep only the max values? I am aware I could do a
max($testarr);
and then loop through the array removing values that differ, but maybe sg like array_filter, or a more elegant one liner solution is available.