rsort

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

Example #1 rsort example

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


Example #2 of rsort

PHP Version: