Methods summary
final public
|
#
__construct( )
Static class - cannot be instantiated.
Static class - cannot be instantiated.
|
public static
mixed
|
#
get( array $arr, mixed $key, mixed $default = NULL )
Returns item from array or $default if item is not set.
Returns item from array or $default if item is not set.
Returns
mixed
|
public static
mixed
&
|
#
getRef( mixed & $arr, mixed $key )
Returns reference to array item or $default if item is not set.
Returns reference to array item or $default if item is not set.
Returns
mixed
|
public static
array
|
#
mergeTree( mixed $arr1, mixed $arr2 )
Recursively appends elements of remaining keys from the second array to the
first.
Recursively appends elements of remaining keys from the second array to the
first.
Returns
array
|
public static
integer
|
#
searchKey( mixed $arr, mixed $key )
Searches the array for a given key and returns the offset if successful.
Searches the array for a given key and returns the offset if successful.
Returns
integer offset if it is found, FALSE otherwise
|
public static
|
#
insertBefore( array & $arr, mixed $key, array $inserted )
Inserts new array before item specified by key.
Inserts new array before item specified by key.
|
public static
|
#
insertAfter( array & $arr, mixed $key, array $inserted )
Inserts new array after item specified by key.
Inserts new array after item specified by key.
|
public static
|
#
renameKey( array & $arr, mixed $oldKey, mixed $newKey )
|
public static
array
|
#
grep( array $arr, mixed $pattern, mixed $flags = 0 )
Returns array entries that match the pattern.
Returns array entries that match the pattern.
Returns
array
|
public static
array
|
#
flatten( array $arr, mixed $preserveKeys = FALSE )
Returns flattened array.
Returns
array
|
public static
boolean
|
#
isList( mixed $value )
Finds whether a variable is a zero-based integer indexed array.
Finds whether a variable is a zero-based integer indexed array.
Returns
boolean
|