SortedMiddleware::keyBy()

Collection keyBy(callable|string $keyBy) Key an associative array by a field or using a callback. Parameters callable|string $keyBy Return Value Collection

SortedMiddleware::jsonSerialize()

array jsonSerialize() Convert the object into something JSON serializable. Return Value array

SortedMiddleware::isEmpty()

bool isEmpty() Determine if the collection is empty or not. Return Value bool

SortedMiddleware::intersect()

Collection intersect(mixed $items) Intersect the collection with the given items. Parameters mixed $items Return Value Collection

SortedMiddleware::implode()

string implode(string $value, string $glue = null) Concatenate values of a given key as a string. Parameters string $value string $glue Return Value string

SortedMiddleware::hasMacro()

static bool hasMacro(string $name) Checks if macro is registered. Parameters string $name Return Value bool

SortedMiddleware::has()

bool has(mixed $key) Determine if an item exists in the collection by key. Parameters mixed $key Return Value bool

SortedMiddleware::groupBy()

Collection groupBy(callable|string $groupBy, bool $preserveKeys = false) Group an associative array by a field or using a callback. Parameters callable|string $groupBy bool $preserveKeys Return Value Collection

SortedMiddleware::getIterator()

ArrayIterator getIterator() Get an iterator for the items. Return Value ArrayIterator

SortedMiddleware::getCachingIterator()

CachingIterator getCachingIterator(int $flags = CachingIterator::CALL_TOSTRING) Get a CachingIterator instance. Parameters int $flags Return Value CachingIterator