asort

PHP 4, PHP 5, PHP 7, PHP 8
asort - Sort an array in ascending order and maintain index association
Asort Online Tool
Manual
Code Examples

Example #1 asort example

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


Example #2 of asort

PHP Version: