New to programming and taking a PHP course. I wrote a very small program to test out the number_format function. Here is my code:
$num = 9876543210123456789;
$result = number_format($num);
echo = $result;
The output is: 9,876,543,210,123,456,512
I'm sure it has something to do with the length of $num. But haven't been able to find the exact explanation/reason why this happens.