PHP » GoLang |
login |
register |
about
|
GoLang ArrayObject::__construct
request it (305)
GoLang replacement for PHP's ArrayObject::__construct
[edit | history]
ArrayObject::__construct(PHP 5, PHP 7) ArrayObject::__construct — Construct a new array object Description
public ArrayObject::__construct
([ mixed
$input = array()
[, int $flags = 0
[, string $iterator_class = "ArrayIterator"
]]] )This constructs a new array object. Parameters
Return ValuesReturns an ArrayObject object on success. Errors/ExceptionsThrows InvalidArgumentException when:
Examples
Example #1 ArrayObject::__construct() example
<?php The above example will output: object(ArrayObject)#1 (3) { [1]=> string(3) "one" [2]=> string(3) "two" [3]=> string(5) "three" } |
more
Recently updated
more
Most requested
more
Last requests
|