<?php$shiliu = 0x6ff;echo $shiliu;?> 我想知道 运算怎么是得1791
abcd
I want to know how this operation is calculated - PHP Chinese website Q&A - I want to know how this operation is calculated - PHP Chinese website Q&A
Take a look around and learn.
数字前面有0x代表是16进制的数据,转换成十进制为6*16*16+15*16+15=1791
具体进制之间的转换可以看下PHP二进制、八进制、十进制、十六进制相互转换
I want to know how this operation is calculated - PHP Chinese website Q&A - I want to know how this operation is calculated - PHP Chinese website Q&A
Take a look around and learn.
数字前面有0x代表是16进制的数据,转换成十进制为6*16*16+15*16+15=1791
具体进制之间的转换可以看下PHP二进制、八进制、十进制、十六进制相互转换