내가 PHP_INT_MAX
기본 인수로 ~PHP_INT_MAX
을 사용되었던 함수를 쓴거야하지만 '~'의 구문 오류가 끝났다으로 ~ PHP_INT_MAX를 사용하는 이유는. 선언은 다음과 같습니다PHP - 그것은 불가능 기본 인수
public static function isNumberValid($number, $lowerbound = ~PHP_INT_MAX, $upperbound = PHP_INT_MAX)
나는 선언에 $lowerbownd = null
을하고 몸을 설정하여 고정 지금은 완벽하게 잘 작동 : 즉 왜 그냥
if (is_null($lowerbound)){
$lowerbound = ~PHP_INT_MAX;
}
궁금 ..
재미 것은 php.net 혼자 _Predefined Constant_로 PHP_INT_MAX (을 의미한다는 것입니다 http://php.net/manual/을 en/reserved.constants.php). 기본 인수 값에 대해서는 기본값이 상수 표현이어야합니다. :) – Smuuf