Skip to content
Chung Leong edited this page Jan 10, 2022 · 4 revisions

rsort - Sort an array in reverse order

bool rsort( array &$array )

rsort() sorts an array in reverse order. Elements will be arranged from highest to lowest when this function has completed. Starting from version 1.4, rsort() is able to sort multi-dimensional arrays

Parameters:

array - The array to sort.

Return Value:

true

Version

1.0 and above.

Clone this wiki locally