downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ArrayIterator::count> <ArrayIterator::asort
[edit] Last updated: Fri, 25 May 2012

view this page in

ArrayIterator::__construct

(PHP 5 >= 5.0.0)

ArrayIterator::__constructArrayIterator を作成する

説明

public ArrayIterator::__construct ( mixed $array )

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

警告

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

パラメータ

array

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

返り値

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

エラー / 例外

ArrayIterator::__construct() は、 配列やオブジェクト以外を渡したときに InvalidArgumentException をスローします。

参考



add a note add a note User Contributed Notes ArrayIterator::__construct
foobuilder at gmail dot com 02-Nov-2010 09:54
The method description looks like it requires a parameter, but it is actually optional:

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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites