This ArrayObject is a rewrite of the implementation to fix
issues with php's implementation of ArrayObject where you
are unable to unset multi-dimensional arrays because you
need to fetch the properties / lists as references.
Methods
Constructor
__construct(array $input, int $flags, string $iteratorClass) : \Zend\Stdlib\ArrayObject
Parameters
$input
array
$flags
int
$iteratorClass
string
Returns
Returns the value at the specified key by reference
__get(mixed $key) : mixed
Parameters
$key
mixed
Returns
mixed
Returns whether the requested key exists
__isset($key) : boolean
Parameters
$key
Returns
boolean
Sets the value at the specified key to value
__set(mixed $key, mixed $value) : void
Parameters
$key
mixed
$value
mixed
Unsets the value at the specified key
__unset(mixed $key) : void
Appends the value
append(mixed $value) : void
Sort the entries by value
asort() : void
Get the number of public properties in the ArrayObject
count() : int
Creates a copy of the ArrayObject.
getArrayCopy() : array
Gets the behavior flags.
getFlags() : int
Create a new iterator from an ArrayObject instance
getIterator() : \Iterator
Gets the iterator classname for the ArrayObject.
getIteratorClass() : string
Sort the entries by key
ksort() : void
Sort an array using a case insensitive "natural order" algorithm
natcasesort() : void
Sort entries using a "natural order" algorithm
natsort() : void
Returns whether the requested key exists
offsetExists($key) : boolean
Parameters
$key
Returns
boolean
Returns the value at the specified key
offsetGet(mixed $key) : mixed
Parameters
$key
mixed
Returns
mixed
Sets the value at the specified key to value
offsetSet(mixed $key, mixed $value) : void
Parameters
$key
mixed
$value
mixed
Unsets the value at the specified key
offsetUnset($key) : void
Serialize an ArrayObject
serialize() : string
Sets the behavior flags
setFlags(int $flags) : void
Sets the iterator classname for the ArrayObject
setIteratorClass(string $class) : void
Sort the entries with a user-defined comparison function and maintain key association
uasort(\Zend\Stdlib\callable $function) : void
Parameters
$function
\Zend\Stdlib\callable
Sort the entries by keys using a user-defined comparison function
uksort(\Zend\Stdlib\callable $function) : void
Parameters
$function
\Zend\Stdlib\callable
Unserialize an ArrayObject
unserialize(string $data) : void
Properties
$iteratorClass
$iteratorClass : string
$protectedProperties
$protectedProperties : array
$storage
$storage : array
Constants
Entries can be accessed as properties (read and write).
ARRAY_AS_PROPS
Properties of the object have their normal functionality
when accessed as list (var_dump, foreach, etc.).
STD_PROP_LIST