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

相關文章
相關標籤/搜索