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 array item or $default if item is not set. Example: $val =
ArrayTools::get($arr, 'i', 123); 
			
Returns array item or $default if item is not set. Example: $val =
ArrayTools::get($arr, 'i', 123); Parameters
					$arrmixedarray
$keymixedkey
$defaultmixeddefault value
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. Parameters
					$arrmixedarray
$keymixedkey
Returns
					mixed
 | 
	
		| 
			
			 public static
			array
			
			 | 
		#
		mergeTree( array $arr1, array $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. ParametersReturns
					array
 | 
	
		| 
			
			 public static
			integer
			
			 | 
		#
		searchKey( array $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. Parameters
					$arrarrayinput array
$keymixedkey
Returns
					integeroffset 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. Parameters
					$arrarrayinput array
$keymixedkey
$insertedarrayinserted array
 | 
	
		| 
			
			 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. Parameters
					$arrarrayinput array
$keymixedkey
$insertedarrayinserted array
 | 
	
		| 
			
			 public static
			
			
			 | 
		#
		renameKey( array & $arr, mixed $oldKey, mixed $newKey )
			
Renames key in array. Parameters
					$arrarray$oldKeymixedold key
$newKeymixednew key
 |