PHP Classes

File: samples/enumerable/minmax.php

Recommend this page to a friend!
  Classes of Eustaquio Rangel de Oliveira Jr.  >  PHPR  >  samples/enumerable/minmax.php  >  Download  
File: samples/enumerable/minmax.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHPR
Provide functional interfaces to manipulate arrays
Author: By
Last change:
Date: 6 years ago
Size: 414 bytes


Class file image Download
 * Min and max code sample
 * PHP version 5.5
 * @category Samples
 * @package PHPR
 * @author Eustáquio Rangel <>
 * @license GPL
 * @link
require_once "../../vendor/autoload.php";

$col = new PHPR\Collection(["one", "two", "three"]);

"Min is {$col->min()}\n";
"Max is {$col->max()}\n";

For more information send a message to info at phpclasses dot org.