首頁  >  文章  >  後端開發  >  位操作符_PHP

位操作符_PHP

WBOY
WBOY原創
2016-06-01 12:39:54831瀏覽

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

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