public function ArrayStack::getIterator in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-stdlib/src/ArrayStack.php \Zend\Stdlib\ArrayStack::getIterator()
Retrieve iterator
Retrieve an array copy of the object, reverse its order, and return an ArrayIterator with that reversed array.
Return value
ArrayIterator
File
- vendor/
zendframework/ zend-stdlib/ src/ ArrayStack.php, line 28
Class
- ArrayStack
- ArrayObject that acts as a stack with regards to iteration
Namespace
Zend\StdlibCode
public function getIterator() {
$array = $this
->getArrayCopy();
return new ArrayIterator(array_reverse($array));
}