问题 I am working with huge numbers for website purposes and I need long calculation. When I echo a long number I don't get the correct output. Example // A random number $x = 100000000000000000000000000; $x = number_format($x); echo "The number is: $x <br>"; // Result: 100,000,000,000,000,004,764,729,344 // I'm not getting the value assigned to $x 回答1: Your number is actually too big for php standard integers. php uses 64 bit integers which can hold values within range -9223372036854775808 ( PHP