开发者

Does PHP have a data type bigger than int?

开发者 https://www.devze.com 2022-12-27 23:10 出处:网络
I want to save a 11 digit numb开发者_JAVA百科er inside a variable. How can I do this in PHP?The 64-bit version of PHP uses 64-bit integers natively, so that\'s plenty of bits for an 11-digit number. T

I want to save a 11 digit numb开发者_JAVA百科er inside a variable. How can I do this in PHP?


The 64-bit version of PHP uses 64-bit integers natively, so that's plenty of bits for an 11-digit number. That said, if you need larger integers, I would use the BC Math extension.


The GMP library is also worth looking at.


Yes, mediumint and bigint is there.

0

精彩评论

暂无评论...
验证码 换一张
取 消