Does PHP have a data type larger than int?

I want to store an 11 digit number inside a variable. How to do it in PHP?

+6
php
source share
3 answers

The 64-bit version of PHP uses 64-bit integers natively, so many bits are required for bits for an 11-digit number. However, if you need large integers, I would use the BC Math extension.

+7
source share

It is also worth paying attention to the GMP library.

+4
source share

Yes, the media and bigint are.

-2
source share

All Articles