Documentation

Array


The array helper contains methods that can be useful when working with arrays.


Methods


subvalSort(array $a, string $subkey, [string $order = null])


Subval sort


$new_array = Arr::subvalSort($old_array, 'sort');

get(array $array, string $key, [string $default = null])


Get a single key from an array. If the key does not exist in the array, the default value will be returned instead.


$login = Arr::get($_POST, 'login');