rsort

PHP 4, PHP 5, PHP 7, PHP 8
rsort - Sort an array in descending order
Manual
Code Examples

Example #1 rsort example

Result: 0 = orange 1 = lemon 2 = banana 3 = apple
PHP Version: