array jsonSerialize() Convert the object into something JSON serializable. Return Value array
bool isEmpty() Determine if the collection is empty or not. Return Value bool
Collection keyBy(callable|string $keyBy) Key an associative array by a field or using a callback. Parameters callable|string $keyBy Return Value Collection
Collection intersect(mixed $items) Intersect the collection with the given items. Parameters mixed $items Return Value Collection
string implode(string $value, string $glue = null) Concatenate values of a given key as a string. Parameters string $value string $glue Return Value string
static bool hasMacro(string $name) Checks if macro is registered. Parameters string $name Return Value bool
ArrayIterator getIterator() Get an iterator for the items. Return Value ArrayIterator
CachingIterator getCachingIterator(int $flags = CachingIterator::CALL_TOSTRING) Get a CachingIterator instance. Parameters int $flags Return Value CachingIterator
bool has(mixed $key) Determine if an item exists in the collection by key. Parameters mixed $key Return Value bool
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
Page 158 of 996