Returns all the elements of this collection that satisfy the predicate p. The order of the elements is preserved.
Closure $p The predicate used for filtering.:
Collection A collection with the results of the filter operation.
function filter(Closure $p);