SortedMiddleware::whereStrict()

Collection whereStrict(string $key, mixed $value) Filter items by the given key value pair using strict comparison. Parameters string $key mixed $value Return Value Collection

SortedMiddleware::zip()

Collection zip(mixed $items) Zip the collection together with one or more arrays. e.g. new Collection([1, 2, 3])->zip([4, 5, 6]); => [[1, 4], [2, 5], [3, 6]] Parameters mixed $items Return Value Collection

SortedMiddleware::whereIn()

Collection whereIn(string $key, mixed $values, bool $strict = false) Filter items by the given key value pair. Parameters string $key mixed $values bool $strict Return Value Collection

SortedMiddleware::where()

Collection where(string $key, mixed $operator, mixed $value = null) Filter items by the given key value pair. Parameters string $key mixed $operator mixed $value Return Value Collection

SortedMiddleware::values()

Collection values() Reset the keys on the underlying array. Return Value Collection

SortedMiddleware::uniqueStrict()

Collection uniqueStrict(string|callable|null $key = null) Return only unique items from the collection array using strict comparison. Parameters string|callable|null $key Return Value Collection

SortedMiddleware::union()

Collection union(mixed $items) Union the collection with the given items. Parameters mixed $items Return Value Collection

SortedMiddleware::unique()

Collection unique(string|callable|null $key = null, bool $strict = false) Return only unique items from the collection array. Parameters string|callable|null $key bool $strict Return Value Collection

SortedMiddleware::toArray()

array toArray() Get the collection of items as a plain array. Return Value array

SortedMiddleware::transform()

$this transform(callable $callback) Transform each item in the collection using a callback. Parameters callable $callback Return Value $this