1. Go to this page and download the library: Download yoshi2889/collections 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/ */
yoshi2889 / collections example snippets
$validationClosure = function ($value)
{
return is_string($value);
};
$initialItems = ['This is a test value!', 'This is another test value!'];
$collection = new \Yoshi2889\Collections\Collection($validationClosure, $initialItems);
$validationClosure = function ($value)
{
return is_string($value);
};
$collection = new \Yoshi2889\Collections\Collection($validationClosure);
$collection['foo'] = 'bar';