class Utils

internal  
 

Methods

static bool
allMatch(array $values, Closure $callback)

Determine if all items in an array match a truth test.

static mixed
last(array $array)

Get the last item from an array or null if it doesn't exist.

static false|int|string
search(array $array, Closure $callback)

Returns the key of the first element in the array that satisfies the callback.

Details

at line 19
static bool allMatch(array $values, Closure $callback)

Determine if all items in an array match a truth test.

Parameters

array $values
Closure $callback

Return Value

bool

at line 35
static mixed last(array $array)

Get the last item from an array or null if it doesn't exist.

Parameters

array $array

Return Value

mixed

Returns the key of the first element in the array that satisfies the callback.

Parameters

array $array
Closure $callback

Return Value

false|int|string