Contact: aviboots(AT)netvision.net.il
39,907 questions
51,839 answers
573 users
$numbers = array(7, 1, 8, 5, 3, 9, 2); rsort($numbers); $len = count($numbers); for($i = 0; $i < $len; $i++) { echo $numbers[$i] . "\n"; } /* run: 9 8 7 5 3 2 1 */