开发者

Does PHP have a data type bigger than int?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜