|
rsortSort an array in reverse order Description
bool rsort
( array
&$array
[, int $sort_flags = SORT_REGULAR
] )This function sorts an array in reverse order (highest to lowest).
Parameters
Return Values
Returns Examples
Example #1 rsort example
<?php The above example will output: 0 = orange 1 = lemon 2 = banana 3 = apple The fruits have been sorted in reverse alphabetical order. Notes
|