I want to get the highest value, the second highest value and the third highest value
For example, I have an array like:
$n = array(100,90,150,200,199,
Easier I would think:
arsort($n); $three = array_chunk($n, 3, true)[0]; //or $three = array_slice($n, 0, 3, true);