src/Traits/Collections.php
public static function doForEachRight($collection, Closure $iterateFn)
    {
        __::doForEach(__::iteratorReverse($collection), $iterateFn);
        return true;
    }
public static function doForEachRight($collection, Closure $iterateFn)
    {
        __::doForEach(__::iteratorReverse($collection), $iterateFn);
        return true;
    }
public static function doForEachRight ( $ collection , Closure $ iterateFn ) { __ :: doForEach ( __ :: iteratorReverse ( $ collection ) , $ iterateFn ) ; return true ; }
Iterate over elements of the collection, from right to left, and invokes iterate
for each element.

The iterate is invoked with three arguments: (value, index|key, collection).
Iterate functions may exit iteration early by explicitly returning false.

@usage __::doForEachRight([1, 2, 3], function ($value) { print_r($value) });
>> (Side effect: print 3, 2, 1)

@param array|object $collection The collection to iterate over.
@param \Closure     $iterateFn  The function to call for each value.

@return boolean
Iterate over elements of the collection from right to left and invokes iterate for each element .