I have the following array:
Array ( [2294] => 1 [2292] => 1 [2296] => 1 )
How can I reverse it to
Array ( [2296] => 1 [2292] => 1 [2294] => 1 )
TRIED array_reverse() but didn't work. What I am missing?
$array = array_reverse($array); // did not work
EDIT: I do not want numeric (order sort) I just need to reverse bottom keys to top, and vice versa