Phalcon\Collection
is an object oriented array. It offers speed, as well as implementations of various PHP interfaces. These are :<?php
use Phalcon\Collection;
$data = [
'colors' => [
'red',
'white',
'blue',
],
'year' => 1776,
];
$collection = new Collection($data);