PHP rsort() Function

This rsort() function is used to sort an array in reverse order (highest to lowest). rsort — Sort an array in reverse order.This function sorts an array in reverse order (highest to lowest).

Example -

Example -