1
Good afternoon guys, you hit the following doubt:
When I define within an integer variable the zero the left it returns me in echo a number nothing to see, I wonder why:
Follows exemplification:
<?php
echo $inteiro = 015;
//me retorna o seguinte valor: 13 gostaria de saber o pq?
?>
A left zero signals to php that this number should be interpreted in base 8(octal). Integer with 0 to the left is printed as another number
– rray
Supplementary reading: http://answall.com/questions/25031/
– Bacco