php print top n массива

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