PHP3 Manual | ||
---|---|---|
Prev | Next |
rsort -- Sort an array in reverse order
This function sorts an array in reverse order (highest to lowest).
Example 1. rsort() example $fruits = array("lemon","orange","banana","apple"); rsort($fruits); for(reset($fruits); $key = key($fruits); next($fruits)) { echo "fruits[$key] = ".$fruits[$key]."\n"; } |
Prev | Home | Next |
reset | Up | sizeof |