Currently I have a number that is 19 digits long, when I try to print it out it gives me the scientific notation, which is exactly what I don't need since this is a specific ID rather than a number.
I've counteracted this by using number_format() however with large digits because of processing the number and the amount of processing I'm doing load time has gone up as well as the last 4 digits being incorrect. My environment is limited so loading in other modules may not be possible, what would be my best option?
And just for an example:
$cid = 8162315223029015401;
$cid1 = sprintf($cid);
$cid2 = number_format($cid, 0, '.', '');
echo gettype($cid);
echo $cid1;
echo $cid2;
>> double
>> 8.162315223029E+18
>> 8162315223029015552
Thanks in advance!
Thanks guys, issue is max length on x32 systems. Is there any way to maximize PHP_INT_MAX?