class ArrayHash extends stdClass implements ArrayAccess, Countable, IteratorAggregate

Array-like object with property access.

Methods

static ArrayHash
from(array $array, bool $recursive = true)

Transforms array to ArrayHash.

getIterator()

No description

int
count()

No description

void
offsetSet(array-key $key, T $value)

Replaces or appends an item.

mixed
offsetGet(array-key $key)

Returns an item.

bool
offsetExists(array-key $key)

Determines whether an item exists.

void
offsetUnset(array-key $key)

Removes the element from this list.

Details

at line 26
static ArrayHash from(array $array, bool $recursive = true)

Transforms array to ArrayHash.

Parameters

array $array
bool $recursive

Return Value

ArrayHash

at line 42
Iterator getIterator()

No description

Return Value

Iterator

at line 50
int count()

No description

Return Value

int

at line 61
void offsetSet(array-key $key, T $value)

Replaces or appends an item.

Parameters

array-key $key
T $value

Return Value

void

at line 76
mixed offsetGet(array-key $key)

Returns an item.

Parameters

array-key $key

Return Value

mixed

at line 86
bool offsetExists(array-key $key)

Determines whether an item exists.

Parameters

array-key $key

Return Value

bool

at line 96
void offsetUnset(array-key $key)

Removes the element from this list.

Parameters

array-key $key

Return Value

void