PHP » GoLang |
login |
register |
about
|
rsort(PHP 4, PHP 5, PHP 7) rsort — Sort 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
See Also
|
more
Recently updated
more
Most requested
|