ArrayIterator::__construct

(PHP 5, PHP 7, PHP 8)

ArrayIterator::__constructConstruct an ArrayIterator

說(shuō)明

public ArrayIterator::__construct(array|object $array = [], int $flags = 0)

Constructs an ArrayIterator object.

警告

本函數(shù)還未編寫(xiě)文檔,僅有參數(shù)列表。

參數(shù)

array

The array or object to be iterated on.

flags

Flags to control the behaviour of the ArrayIterator object. See ArrayIterator::setFlags().

參見(jiàn)