ArrayIterator::__construct Construct an ArrayIterator &reftitle.description; public ArrayIterator::__construct mixedarrayarray() intflags0 Constructs an ArrayIterator object. &warn.undocumented.func; &reftitle.parameters; array The array or object to be iterated on. flags Flags to control the behaviour of the ArrayObject object. See ArrayObject::setFlags. &reftitle.returnvalues; An ArrayIterator object. &reftitle.errors; ArrayIterator::__construct throws an InvalidArgumentException if anything besides an array or an object is given. &reftitle.seealso; ArrayIterator::getArrayCopy