$rank) { if( rank > 10 ) break; //we've already got the top 10 -- bail outof the loop //do stuff here. //to get the user's other stats, use $stats[$talker] //f.ex.: echo $rank . '. ' . $talker . ' - ' . $stats[$talker]['tt_words'] . ' words'; }