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,
$n = array(100,90,150,200,199,155,15,186); arsort($n); $x = 0; while (++$x <= 3) { $key = key($n); $value = current($n); next($n); echo "Key : " . $key . " Value : " . $value . '' ; }