The ArrayObject class
ArrayObject
&reftitle.intro;
This class allows objects to work as arrays.
Wrapping objects with this class is fundamentally flawed, and therefore its usage with objects is discouraged.
&reftitle.classsynopsis;
ArrayObject
implements
IteratorAggregate
ArrayAccess
Serializable
Countable
&Constants;
public
const
int
ArrayObject::STD_PROP_LIST
public
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;