//arsort($myArray); //sort if you need to then print_r(array_slice($myArray, 0, 10));//print top 10 item in array