PHP 5.4.31 Released

ArrayIterator::__construct

(PHP 5 >= 5.0.0)

ArrayIterator::__constructساخت ArrayIterator

Description

ArrayIterator::__construct ( mixed $array )

ساخت ArrayIterator object.

Warning

This function is currently not documented; only its argument list is available.

Parameters

array

آرایه یا شی برای تکرار.

Return Values

ArrayIterator object.

Errors/Exceptions

ArrayIterator::__construct() InvalidArgumentException اگر چیز دیگری جز آرایه یا شی ارسال شود ایجاد خواهد شد.

See Also

add a note add a note

User Contributed Notes 1 note

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

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