Table of Contents
PHP 5 brought us many useful features in the form of the SPL. We could now iterate over objects in a customizable way. Xyster's collections package is intended to utilize these features in a standard way and inherit good ideas from the collection packages of other popular platforms (read: Java and .NET).
Below is a list of the types of collections you will find in this package. You might have seen some of these terms before when working with other languages.
The base term for a traversable grouping of objects.
A list is just like a numeric array: objects are stored at numeric indexes.
A collection that can contain only one entry for any unique object.
A collection consisting of key-and-value pairs; the keys can be scalar types or objects.