php rsort retain keys
snippet in php

php rsort retain keys

user1062

//Sort an array in reverse order and maintain index association
arsort($myArray)