ArrayHash
class ArrayHash extends stdClass implements ArrayAccess, Countable, IteratorAggregate
Provides objects to work as array.
Methods
getIterator()
Returns an iterator over all items.
int
count()
Returns items count.
void
offsetSet(string|int $key, T $value)
Replaces or appends a item.
mixed
offsetGet(string|int $key)
Returns a item.
bool
offsetExists(string|int $key)
Determines whether a item exists.
void
offsetUnset(string|int $key)
Removes the element from this list.
Details
at line 25
static ArrayHash
from(array $array, bool $recursive = true)
Transforms array to ArrayHash.
at line 42
RecursiveArrayIterator
getIterator()
Returns an iterator over all items.
at line 51
int
count()
Returns items count.
at line 62
void
offsetSet(string|int $key, T $value)
Replaces or appends a item.
at line 77
mixed
offsetGet(string|int $key)
Returns a item.
at line 87
bool
offsetExists(string|int $key)
Determines whether a item exists.
at line 97
void
offsetUnset(string|int $key)
Removes the element from this list.