Collection objects can act very much like arrays. This is especially evident in creating new
objects, or by converting Collection into an actual array:
{{{
$coll = new Collection();
$coll[] = 'foo';
$coll[0] --> 'foo'
$coll = new Collection(array('items' => array('foo')));
$coll[0] --> 'foo'
$array = $coll->to('array);
}}}
Apart from array-like data access, Collections allow for filtering and iteration methods:
{{{
$coll = new Collection(array('items' => array(0, 1, 2, 3, 4)));
$coll->first(); // 1 (the first non-empty value)
$coll->current(); // 0
$coll->next(); // 1
$coll->next(); // 2
$coll->next(); // 3
$coll->prev(); // 2
$coll->rewind(); // 0
}}}