Collection::search()

mixed search(mixed $value, bool $strict = false) Search the collection for a given value and return the corresponding key if successful. Parameters mixed $value bool $strict Return Value mixed

Collection::search()

mixed search(mixed $value, bool $strict = false) Search the collection for a given value and return the corresponding key if successful. Parameters mixed $value bool $strict Return Value mixed

Collection::reverse()

Collection reverse() Reverse items order. Return Value Collection

Collection::reverse()

Collection reverse() Reverse items order. Return Value Collection

Collection::reject()

Collection reject(callable|mixed $callback) Create a collection of all elements that do not pass a given truth test. Parameters callable|mixed $callback Return Value Collection

Collection::reject()

Collection reject(callable|mixed $callback) Create a collection of all elements that do not pass a given truth test. Parameters callable|mixed $callback Return Value Collection

Collection::reduce()

mixed reduce(callable $callback, mixed $initial = null) Reduce the collection to a single value. Parameters callable $callback mixed $initial Return Value mixed

Collection::reduce()

mixed reduce(callable $callback, mixed $initial = null) Reduce the collection to a single value. Parameters callable $callback mixed $initial Return Value mixed

Collection::random()

mixed random(int $amount = 1) Get one or more items randomly from the collection. Parameters int $amount Return Value mixed Exceptions InvalidArgumentException

Collection::random()

mixed random(int $amount = 1) Get one or more items randomly from the collection. Parameters int $amount Return Value mixed Exceptions InvalidArgumentException