Collection::sortBy()

Collection sortBy(callable|string $callback, int $options = SORT_REGULAR, bool $descending = false) Sort the collection using the given callback. Parameters callable|string $callback int $options bool $descending Return Value Collection

Collection::sortBy()

Collection sortBy(callable|string $callback, int $options = SORT_REGULAR, bool $descending = false) Sort the collection using the given callback. Parameters callable|string $callback int $options bool $descending Return Value Collection

Collection::sort()

Collection sort(callable $callback = null) Sort through each item with a callback. Parameters callable $callback Return Value Collection

Collection::sort()

Collection sort(callable $callback = null) Sort through each item with a callback. Parameters callable $callback Return Value Collection

Collection::slice()

Collection slice(int $offset, int $length = null) Slice the underlying collection array. Parameters int $offset int $length Return Value Collection

Collection::slice()

Collection slice(int $offset, int $length = null) Slice the underlying collection array. Parameters int $offset int $length Return Value Collection

Collection::shuffle()

Collection shuffle(int $seed = null) Shuffle the items in the collection. Parameters int $seed Return Value Collection

Collection::shuffle()

Collection shuffle(int $seed = null) Shuffle the items in the collection. Parameters int $seed Return Value Collection

Collection::shift()

mixed shift() Get and remove the first item from the collection. Return Value mixed

Collection::shift()

mixed shift() Get and remove the first item from the collection. Return Value mixed