Home >Backend Development >PHP Tutorial >The number 034111 is added to the array, why is 14409 displayed?
$info=array(034111);
echo $info[0];
?>
034111, 0034111, 00034111.... The final output is 14409. What is this converted into?
$info=array(034111);
echo $info[0];
?>
034111, 0034111, 00034111.... The final output is 14409. What is this converted into?
In PHP, numbers starting with 0 are calculated in octal. When octal 34111 is converted into decimal, it is 14409.
The number starting with 0 is octal, and the number starting with 0x is hexadecimal.
(34111)_8 = (14409)_10