Why is this answer 13925?
P粉751989631
P粉751989631 2022-09-24 20:25:31
0
1
822

<?php//The maximum value range of octal is 0-7, that is, 0,1,2,3,4,5,6,7$bajingzhi = 033145;echo $bajingzhi;?>

P粉751989631
P粉751989631

reply all(1)
WBOY

Because 13925 (decimal) = 33145 (octal)

$bajingzhi = 033145 means declaring an octal number

Because the characteristic of octal declaration is to add 0 in front of the number, and after is an integer from 0 to 7.

Just like hexadecimal declarations, they all start with 0x.

You can try removing the 0 in front, or adding an integer greater than 7 at the end.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!