|
ArrayObject::getIteratorCreate a new iterator from an ArrayObject instance Description
public Iterator ArrayObject::getIterator()
Create a new Iterator (default is ArrayIterator) from an ArrayObject instance. ParametersThis function has no parameters. Return ValuesAn iterator from an ArrayObject. Examples
Example #1 ArrayObject::getIterator example
The above example will output: 1 => one 2 => two 3 => three |