|
ArrayObject::__constructConstruct a new array object Description
public ArrayObject::__construct(arrayobject
$array = [], int $flags = 0, string $iteratorClass = ArrayIterator::class)This constructs a new array object. Parameters
Examples
Example #1 ArrayObject::__construct example
The above example will output: object(ArrayObject)#1 (3) { [1]=> string(3) "one" [2]=> string(3) "two" [3]=> string(5) "three" } See Also
|