Метод |
Описание |
|
contains ( array $array, string $search ) : boolean |
Checks if an array contains a certain string |
|
extract ( array $array, string $key ) : array |
Extracts a single column from an array |
|
fill ( array $array, integer $limit, mixed $fill = 'placeholder' ) : array |
Fills an array up with additional elements to certain amount. |
|
first ( array $array ) : mixed |
Returns the first element of an array |
|
get ( array $array, mixed $key, mixed $default = null ) : mixed |
Gets an element of an array by key |
|
getall ( array $array, $keys ) : array |
Gets all elements for an array of key |
|
inject ( array $array, integer $position, mixed $element = 'placeholder' ) : array |
Injects an element into an array |
|
json ( array $array ) : string |
Converts an array to a JSON string
It's basically a shortcut for json_encode() |
|
last ( array $array ) : mixed |
Returns the last element of an array |
|
missing ( array $array, array $required = [] ) : array |
Checks for missing elements in an array |
|
remove ( array $array, mixed $search, boolean $key = true ) : array |
Removes an element from an array |
|
search ( array $array, string $search ) : array |
Search for elements in an array by regular expression |
|
show ( array $array, boolean $echo = true ) : mixed |
Shows an entire array or object in a human readable way
This is perfect for debugging |
|
shuffle ( array $array ) : array |
Shuffles an array and keeps the keys |
|
sort ( array $array, string $field, string $direction = 'desc', const $method = SORT_REGULAR ) : array |
Sorts a multi-dimensional array by a certain column |
|
xml ( array $array, string $tag = 'root', boolean $head = true, string $charset = 'utf-8', $tab = ' ', integer $level ) : string |
Converts an array to a XML string |
|