PHP Snippets
Groups the elements of an array based on the given function.
Sorts a collection of arrays or objects by key.
Calculates the greatest common divisor between two or more numbers.
Curries a function to take arguments in multiple calls.
Retrieves all of the values for a given key.
Deep flattens an array.
Returns the index of the last element for which the provided function returns a truthy value.
Flattens an array up to the one level depth.
Returns the maximum value from the provided array.
Returns the minimum value from the provided array.
Filters the collection using the given callback.
Rotates the array (in left direction) by the number of shifts.
Return a new function that composes multiple functions into a single callable.
Returns the last element for which the provided function returns a truthy value.
Removes elements from an array for which the given function returns
false
.