Is there an SPL Reverse array iterator in PHP? And if not, what would be the best way to achieve it?
I could simply do
$array = array_reverse($array)
$array = array_reverse($array); foreach($array as $key => $currentElement) {}
This is better way to use. It will take care of keys also, if they are not sequential or integer.