Data types in PHP


I was going through the official doc of php for data types

It seems php does not support long data type. So is double the only datatype in php that supports the highest rage of value?


A better page to look at might be here:

The big thing to remember is that PHP doesnt handle these large numbers well, especially when it comes to comparison. See for manipulating large numbers.

So if php does not handle large numbers, what is the work around for this?


I suppose I didn’t word it correctly. Understand that PHP is built on top of C. The standard operators may not be able to handle large integers, but there are libraries that link directly to C extensions that can.

The link to the library I posted is your work around.