Collection

A collection is an array in which only elements of the same type can be stored.

Collections may be build with array, or dedicated classes. There is native no native support for collections in PHP, although there are several packages which provide such features.

Documentation

See also Collections — How to improve your PHP code and Illuminate Collections vs PHP Arrays.

Related : Enumeration (enum), Hash, Associative Array, Index For Arrays, Array, Map, Generics, Bucket, Data Structure, Data Structure, Indexed Array, Sequence, Set, SplDoublyLinkedList, SplObjectStorage

Related packages : ramsey/collection, doctrine/collections, illuminate/collections