(PHP 5, PHP 7)
This class allows objects to work as arrays.
$input = array()
[, int $flags = 0
[, string $iterator_class = "ArrayIterator"
]]] )ArrayObject::STD_PROP_LISTProperties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.).
ArrayObject::ARRAY_AS_PROPSEntries can be accessed as properties (read and write).
| 版本 | 说明 |
|---|---|
| 5.3.0 | Implements Serializable. |