class ArrayHash extends stdClass implements ArrayAccess, Countable, IteratorAggregate

Provides objects to work as array.

Methods

static ArrayHash
from($arr, $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 26
static ArrayHash from($arr, $recursive = TRUE)

No description

Parameters

$arr
$recursive

Return Value

ArrayHash

at line 44
RecursiveArrayIterator getIterator()

Returns an iterator over all items.

Return Value

RecursiveArrayIterator

at line 54
int count()

Returns items count.

Return Value

int

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

Replaces or appends a item.

Parameters

$key
$value

Return Value

void

at line 77
mixed offsetGet($key)

Returns a item.

Parameters

$key

Return Value

mixed

at line 87
bool offsetExists($key)

Determines whether a item exists.

Parameters

$key

Return Value

bool

at line 97
void offsetUnset($key)

Removes the element from this list.

Parameters

$key

Return Value

void