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::__constructConstruit un ArrayIterator

Description

public ArrayIterator::__construct ( mixed $array )

Construit un objet ArrayIterator.

Avertissement

Cette fonction n'est pas documentée et seule la liste des arguments est disponible.

Liste de paramètres

array

Le tableau ou l'objet à itérer.

Valeurs de retour

Un objet ArrayIterator.

Erreurs / Exceptions

ArrayIterator::__construct() émet une exception InvalidArgumentException si une variable autre qu'un tableau ou un objet est fourni.

Voir aussi



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 | sitemap | contact | advertising | mirror sites