|
ArrayObject::__constructConstruct a new array object Beschreibung
public ArrayObject::__construct
([ mixed
$input = []
[, int $flags = 0
[, string $iterator_class = "ArrayIterator"
]]] )This constructs a new array object. Parameter-Liste
RückgabewerteReturns an ArrayObject object on success. Fehler/ExceptionsThrows InvalidArgumentException when:
Beispiele
Beispiel #1 ArrayObject::__construct example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
object(ArrayObject)#1 (3) {
[1]=>
string(3) "one"
[2]=>
string(3) "two"
[3]=>
string(5) "three"
}
Siehe auch
|