1. Go to this page and download the library: Download damijanc/collection library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
damijanc / collection example snippets
use damijanc\Collection\Collection;
$collection = new Collection(['first' => 'value1']);
$collection[] = 'value2';
$collection['data'] = 'value3';
echo $collection['first'];
echo count($collection);