Метод |
Описание |
|
all ( array $array, callable $predicate ) : boolean |
Determines whether all elements of an array satisfy a condition. |
|
any ( array $array, callable $predicate ) : boolean |
Determines whether any element of an array satisfies a condition. |
|
isAssociative ( mixed $array ) : boolean |
Returns true if the array is associative. Associative being defined
as an array containing at least one string key. |
|
map ( callable $mapFn, array $array ) : array |
Extends array_map function with keys. |
|
mapreduce ( $data, $mapFn, $reduceFn ) : array |
Transforms and groups data in array
$mapFn emits key and value. These values are grouped by their keys and passed into $reduceFn
which can transform the group and emit result. |
|
parametrize ( $array ) |
|
|
stablesort ( &$array, string $cmp_function = 'strcmp' ) |
Similar to usort() but maintains order of equal items (the algorithm is "stable"). |
|
unique ( array $array, callable | null $fn = null ) : array |
Removes duplicate values from an array. |
|