The number 034111 is added to the array, why is 14409 displayed?

WBOY
Release: 2016-07-06 13:53:02
Original
1041 people have browsed it

$info=array(034111);
echo $info[0];
?>

034111, 0034111, 00034111.... The final output is 14409. What is this converted into?

Reply content:

$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

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template