April 22, 2018 —John Koster
The Collection
class exposes a generous public API, consisting of many public methods that allow you to manipulate and transform the collections internal elements. The Collection
API exposes methods for retrieving values from a collection, transforming the underlying array, pagination and simple aggregate functions, along with many others. This section will cover most of the methods in the public API, excluding those methods required to implement PHP's ArrayAccess
and IteratorAggregate
interfaces, as well as the getCachingIterator
method.
∎
The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.