The ArrayObject class
ArrayObject
&reftitle.intro;
This class allows objects to work as arrays.
&reftitle.classsynopsis;
ArrayObject
ArrayObject
IteratorAggregate
ArrayAccess
Serializable
Countable
&Constants;
const
int
ArrayObject::STD_PROP_LIST
const
int
ArrayObject::ARRAY_AS_PROPS
&Methods;
&reftitle.constants;
ArrayObject Flags
ArrayObject::STD_PROP_LIST
Properties of the object have their normal functionality when accessed as list (var_dump, foreach, etc.).
ArrayObject::ARRAY_AS_PROPS
Entries can be accessed as properties (read and write). The
ArrayObject class uses its own logic to access
properties, thus no warning or error is raised when trying to read or
write dynamic properties.
&reference.spl.entities.arrayobject;