1. Go to this page and download the library: Download malarzm/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/ */
malarzm / collections example snippets
class SortedCollection extends Malarzm\Collections\SortedCollection
{
public function compare($a, $b)
{
// ...
}
}
$coll = new SortedIntCollection([], 'usort');
class Set extends Malarzm\Collections\Set
{
public function compare($a, $b)
{
// ...
}
}
class Diffable extends Malarzm\Collections\Diffable
{
public function compare($a, $b)
{
// ...
}
}
class SortedList extends Malarzm\Collections\SortedList
{
public function compare($a, $b)
{
// ...
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.