I have following php code.
<?php
print 0505;
echo "
";
print 0500;
?>
output => 325
320
can anyone tell me how come did this output?
0x*** - hex number (16)
0b*** - bin number (2, PHP5.4)
0*** - oct number (8)
*** - dec number (10, normal)
You can get output using this format
print "0505";
echo " ";
print "0500";
Because this is octal/decimal convertor
please check this link: http://www.statman.info/conversions/octal.html