(PHP 5, PHP 7, PHP 8)
ArrayIterator::__construct — Construct an ArrayIterator
Constructs an ArrayIterator object.
Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Parameter zur Verfügung.
arrayThe array or object to be iterated on. Passing an object is deprecated as of PHP 8.5.0.
flagsFlags to control the behaviour of the ArrayIterator object. See ArrayIterator::setFlags().
As of PHP 8.5.0, throws an
InvalidArgumentException if
array is an enum.
| Version | Beschreibung |
|---|---|
| 8.5.0 |
Passing an enum as array now throws an
InvalidArgumentException.
|
| 8.5.0 |
Passing an object as array is deprecated.
|