collection::filter

Filter the elements in the array by a callback function

collection::filter($callback)

Parameters

$callback (\func)
the callback function

Return values

\Collection