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.
精彩评论