Search code examples
phpinteger32-bitunsigned

32 bit unsigned int php


Does anyone know of a class/library/etc. that can simulate 32 bit unsigned integers on a 32 bit platform in PHP? I'm porting a C lib into PHP and it uses a lot of integers that are greater than the maximum for 32 bit signed int.


Solution

  • Try the BC Math Library, which "supports numbers of any size and precision, represented as strings."

    Good luck!