Exemple #1
0
<?php

/**
 * Min and max code sample
 *
 * PHP version 5.5
 *
 * @category Samples
 * @package  PHPR
 * @author   Eustáquio Rangel <*****@*****.**>
 * @license  http://www.gnu.org/copyleft/gpl.html GPL
 * @link     http://github.com/taq/torm
 */
require_once "../../vendor/autoload.php";
$col = new PHPR\Collection(["one", "two", "three"]);
echo "Min is {$col->min()}\n";
echo "Max is {$col->max()}\n";