min() public static method

Increase the number to the minimum if below threshold.
public static min ( integer $number, integer $min ) : integer
$number integer
$min integer
return integer
示例#1
0
文件: VarsTest.php 项目: jbzoo/utils
 public function testMin()
 {
     is(50, Vars::min(12, 50));
     is(55, Vars::min(55, 50));
     is(123, Vars::min(123, 50));
 }