isIn() 공개 정적인 메소드

Return true if the number is within the min and max.
public static isIn ( integer | float $number, integer | float $min, integer | float $max ) : boolean
$number integer | float
$min integer | float
$max integer | float
리턴 boolean
예제 #1
0
파일: VarsTest.php 프로젝트: jbzoo/utils
 public function testIn()
 {
     isTrue(Vars::isIn(0.5, 0, 5));
     isTrue(Vars::isIn(0.5, 0.5, 5));
     isFalse(Vars::isIn(0.5, 1, 5));
 }