Collection::filter()

Collection filter(callable $callback = null) Run a filter over each of the items. Parameters callable $callback Return Value Collection

Collection::except()

Collection except(mixed $keys) Get all items except for those with the specified keys. Parameters mixed $keys Return Value Collection

Collection::every()

Collection every(int $step, int $offset) Create a new collection consisting of every n-th element. Parameters int $step int $offset Return Value Collection

Collection::every()

Collection every(int $step, int $offset) Create a new collection consisting of every n-th element. Parameters int $step int $offset Return Value Collection

Collection::each()

$this each(callable $callback) Execute a callback over each item. Parameters callable $callback Return Value $this

Collection::diffKeys()

Collection diffKeys(mixed $items) Get the items in the collection whose keys are not present in the given items. Parameters mixed $items Return Value Collection

Collection::each()

$this each(callable $callback) Execute a callback over each item. Parameters callable $callback Return Value $this

Collection::diffKeys()

Collection diffKeys(mixed $items) Get the items in the collection whose keys are not present in the given items. Parameters mixed $items Return Value Collection

Collection::count()

int count() Count the number of items in the collection. Return Value int

Collection::diff()

Collection diff(mixed $items) Diff the collection with the given items. Parameters mixed $items Return Value Collection