class ArrayHash extends stdClass implements ArrayAccess, Countable, IteratorAggregate

Provides objects to work as array.

Methods

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

No description

getIterator()

Returns an iterator over all items.

int
count()

Returns items count.

void
offsetSet($key, $value)

Replaces or appends a item.

mixed
offsetGet($key)

Returns a item.

bool
offsetExists($key)

Determines whether a item exists.

void
offsetUnset($key)

Removes the element from this list.

Details

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

Parameters

array $arr
bool $recursive

Return Value

ArrayHash

at line 41
RecursiveArrayIterator getIterator()

Returns an iterator over all items.

Return Value

RecursiveArrayIterator

at line 50
int count()

Returns items count.

Return Value

int

at line 59
void offsetSet($key, $value)

Replaces or appends a item.

Parameters

$key
$value

Return Value

void

at line 72
mixed offsetGet($key)

Returns a item.

Parameters

$key

Return Value

mixed

at line 81
bool offsetExists($key)

Determines whether a item exists.

Parameters

$key

Return Value

bool

at line 90
void offsetUnset($key)

Removes the element from this list.

Parameters

$key

Return Value

void