Class NArrayHash
Provides objects to work as array.
-
stdClass
-
NArrayHash
implements
ArrayAccess,
Countable,
IteratorAggregate
Direct known subclasses
NRow
Methods summary
public static
NArrayHash
|
#
from( array $arr, boolean $recursive = TRUE )
Parameters
- $arr
array to wrap
- $recursive
boolean
Returns
|
public
RecursiveArrayIterator
|
#
getIterator( )
Returns an iterator over all items.
Returns an iterator over all items.
Returns
Implementation of
|
public
integer
|
#
count( )
Returns items count.
Returns
integer
Implementation of
|
public
|
#
offsetSet( $key, $value )
Replaces or appends a item.
Replaces or appends a item.
Implementation of
|
public
mixed
|
#
offsetGet( $key )
Returns a item.
Returns
mixed
Implementation of
|
public
boolean
|
#
offsetExists( $key )
Determines whether a item exists.
Determines whether a item exists.
Returns
boolean
Implementation of
|
public
|
#
offsetUnset( $key )
Removes the element from this list.
Removes the element from this list.
Implementation of
|