mrkeck Sharing the Love

22Apr/130

PHP int limit

Integer limit depends on the Architecture of the processor.

32-bit version: 2,147,483,647
64-bit version: 9,000,000,000,000,000,000~

I noticed once I reached large numbers, the modulus function gave incorrect results, and it was because I was using the 32-bit version of PHP

Filed under: PHP Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.