rsort Sort an array in descending order &reftitle.description; boolrsort arrayarray intflagsSORT_REGULAR Sorts array in place by values in descending order. ¬e.sort-unstable; ¬e.no-key-association; ¬e.reset-index; &reftitle.parameters; array The input array. &sort.flags.parameter; &reftitle.returnvalues; &return.true.always; &reftitle.examples; <function>rsort</function> example $val) { echo "$key = $val\n"; } ?> ]]> &example.outputs; The fruits have been sorted in reverse alphabetical order. &reftitle.seealso; sort arsort krsort &seealso.array.sorting;