rsort Sort an array in reverse order &reftitle.description; boolrsort arrayarray intsort_flagsSORT_REGULAR This function sorts an array in reverse order (highest to lowest). ¬e.sort-unstable; &reftitle.parameters; array The input array. sort_flags You may modify the behavior of the sort using the optional parameter sort_flags, for details see sort. &reftitle.returnvalues; &return.success; &reftitle.examples; <function>rsort</function> example $val) { echo "$key = $val\n"; } ?> ]]> &example.outputs; The fruits have been sorted in reverse alphabetical order. &reftitle.notes; ¬e.no-key-association; &reftitle.seealso; arsort krsort &seealso.array.sorting;