Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
即使值是整数,为什么 is_int() 返回双精度值?
$value = 1555555555; echo gettype($value);
integer
$value = 15555555552; echo gettype($value);
double
因为您达到了整数的限制,请在此处进一步阅读:
http://php.net/manual/en/language.types.integer.php