aort array by value without affecting the key in php code example
Example: php rsort retain keys
//Sort an array in reverse order and maintain index association
arsort($myArray)
//Sort an array in reverse order and maintain index association
arsort($myArray)