arsort

PHP 4, PHP 5, PHP 7, PHP 8
arsort - Sort an array in descending order and maintain index association
Arsort Online Tool
Manual
Code Examples

Example #1 arsort example

Result: a = orange d = lemon b = banana c = apple
PHP Version:


Example #2 of arsort

PHP Version:


Function arsort:

Arrays Functions

Most used PHP functions