krsort

PHP 4, PHP 5, PHP 7, PHP 8
krsort - Sort an array by key in descending order
Krsort Online Tool
Manual
Code Examples

Example #1 krsort example

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


Example #2 of krsort

PHP Version:


Function krsort:

Arrays Functions

Most used PHP functions