Метод | Описание | |
---|---|---|
__construct ( $stack = [] ) | Arr constructor | |
create ( $stack = [] ) | Create a new instance of the Arr class | |
erase ( &$array, $key ) | Remove a value from a array | |
first ( ) : mixed | Returns the first element in the stack | |
get ( $array, $key, $fallback = null ) | Return a element from a array | |
last ( ) : mixed | Returns the last element in the stack | |
set ( &$array, $key, $value ) | Sets a value in a array | |
shuffle ( ) : object | Shuffle the array elements in the stack |
public static create ( $stack = [] ) |
public static erase ( &$array, $key ) |
public static get ( $array, $key, $fallback = null ) |
public static set ( &$array, $key, $value ) |