<?php $arr = array(12,65,23,60,69,9,15,56,67,3,52,12,10,177,67,97,37,87,67,77,68,70); sort($arr); $score95 = $arr[round((95/100) * count($arr) -0.5)]; echo $score95; // 90 ?>