Reverse sort

function sorts an array in the reverse order

<?php
$women = array ("Jenny", "Cindy", "Jessica", "Irene");
rsort ($women);
reset ($women);
while (list ($key, $val) = each ($women)) {
echo "$key -> $val\n";
}
?>