void rsort
(array array [, int sort_flags])
This function sorts an array in reverse order (highest to lowest).
Példa 1. Rsort() example
|
This example would display:
1 2 fruits[0] = orange 3 fruits[1] = lemon 4 fruits[2] = banana 5 fruits[3] = apple 6 |
The fruits have been sorted in reverse alphabetical order.
You may modify the behavior of the sort using the optional parameter sort_flags, for details see sort().