Collection::getDictionary()

array getDictionary(ArrayAccess|array|null $items = null) Get a dictionary keyed by primary keys. Parameters ArrayAccess|array|null $items Return Value array

Collection::getCachingIterator()

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

Collection::getCachingIterator()

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

Collection::get()

mixed get(mixed $key, mixed $default = null) Get an item from the collection by key. Parameters mixed $key mixed $default Return Value mixed

Collection::get()

mixed get(mixed $key, mixed $default = null) Get an item from the collection by key. Parameters mixed $key mixed $default Return Value mixed

Collection::forPage()

Collection forPage(int $page, int $perPage) "Paginate" the collection by slicing it into a smaller collection. Parameters int $page int $perPage Return Value Collection

Collection::forPage()

Collection forPage(int $page, int $perPage) "Paginate" the collection by slicing it into a smaller collection. Parameters int $page int $perPage Return Value Collection

Collection::forget()

$this forget(string|array $keys) Remove an item from the collection by key. Parameters string|array $keys Return Value $this

Collection::forget()

$this forget(string|array $keys) Remove an item from the collection by key. Parameters string|array $keys Return Value $this

Collection::flip()

Collection flip() Flip the items in the collection. Return Value Collection