Question

The code "abs(070000)" returns 28672, but the code "abs(70000)" returns 70000.

Did the zero at the beginning means that the number is interpreted as hex?

Thank you!

Was it helpful?

Solution

Numbers beginning by zero are interpreted as octal.

See php documentation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top