It is so desirable to loop an array or a collecting in reverse order. There no direct way to iterate an array or collection. To iterate them we need to Reverse the collection and then iterate them with Foreach loop.
In PHP its array_reverse method with an optional boolean parameter to preserve keys order.
In Java and JavaScript array.reverse() method is used to reverse items in array and then iterate with Foreach loop.