Data types in PHP

Hi

I was going through the official doc of php for data types http://php.net/manual/en/language.types.php

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

Thanks

A better page to look at might be here: http://php.net/manual/en/language.types.integer.php

The big thing to remember is that PHP doesnt handle these large numbers well, especially when it comes to comparison. See http://www.php.net/manual/en/book.bc.php for manipulating large numbers.

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

Thanks

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.