php intval函数使用碰到的坑

intval() 函数用于获取变量的整数值ide

千万注意 intval的使用范围;函数

echo intval('420000000000000000000'); // 2147483647it

PHP的32位版本:class

整数能够从-2,147,483,648到2,147,483,647(~20亿)
PHP的64位版本:变量

整数能够从-9,223,372,036,854,775,808到9,223,372,036,854,775,807(〜±9 十亿分之一)di

相关文章
相关标签/搜索