PHP Velho Oeste 2024

ArrayIterator::__construct

(PHP 5, PHP 7, PHP 8)

ArrayIterator::__constructArrayIterator を作成する

説明

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

ArrayIterator オブジェクトを作成します。

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

array

反復処理をする配列あるいはオブジェクト。

flags

ArrayIterator オブジェクトの振る舞いを制御するフラグ。 ArrayIterator::setFlags() を参照ください。

参考

add a note add a note

User Contributed Notes 1 note

up
0
foobuilder at gmail dot com
13 years ago
The method description looks like it requires a parameter, but it is actually optional:

$iter= new ArrayIterator();
$iter['bacon'] = 'tasty';
To Top