PHP rsort() Function
The rsort() function sorts an array in reverse order (highest to lowest).
Syntax
rsort(array &$array, int $flags = SORT_REGULAR): true
Try It Online
Output
Click Run to execute your code
Enjoying these tutorials?