PHP 클래스 MathPHP\Functions\Support

파일 보기 프로젝트 열기: markrogoyski/math-php 1 사용 예제들

공개 메소드들

메소드 설명
checkLimits ( array $limits, array $params ) : boolean Checks that the values of the parameters passed to a function fall within the defined bounds.

메소드 상세

checkLimits() 공개 정적인 메소드

The parameter limits are defined using ISO 31-11 notation. https://en.wikipedia.org/wiki/ISO_31-11 (a,b) = a < x < b [a,b) = a <= x < b (a,b] = a < x <= b [a,b] = a <= x <= b
public static checkLimits ( array $limits, array $params ) : boolean
$limits array Boundary limit definitions for each parameter ['var1' => limit, 'var2' => limit, ...]
$params array Parameters and their value to check against the defined limits ['var1' => value, 'var2' => value, ...]
리턴 boolean True if all parameters are within defined limits