out() public static method

Return true if the number is outside the min and max.
public static out ( integer $number, integer $min, integer $max ) : boolean
$number integer
$min integer
$max integer
return boolean
Beispiel #1
0
 public function testOut()
 {
     isTrue(Vars::out(15, 5, 10));
     isTrue(Vars::out(3, 5, 10));
     isFalse(Vars::out(8, 5, 10));
 }