首页 >后端开发 >php教程 >位操作符_PHP

位操作符_PHP

WBOY
WBOY原创
2016-06-01 12:39:54902浏览

位操作符允许您精细的操作数据的每一个位。

Table 7-2. Bitwise Operators(表7-2位操作符)

example name result
$a & $b And Bits that are set in both $a and $b are set.?/FONT>
$a | $b Or Bits that are set in either $a or $b are set.?/FONT>
~ $a?/FONT> Not Bits that are set in $a are not set, and vice versa.






声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn