想知道这运算是怎么算的
php(cyrus)
php(cyrus) 2017-03-17 12:16:05
0
2
1394

<?php
$shiliu = 0x6ff;
echo $shiliu;
?> 我想知道 运算怎么是得1791

php(cyrus)
php(cyrus)

abcd

reply all(2)
数据分析师

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二进制、八进制、十进制、十六进制相互转换

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template