rsort

rsort

(PHP 4, PHP 5, PHP 7)

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).

Note:

If two members compare as equal, their relative order in the sorted array is undefined.

Parameters

array

The input array.