可能重复:
What is the difference between the | and || operators?
Reference - What does this symbol mean in PHP?
我开始再次使用PHP而且我总是记得使用单个|并且我的所有书籍都存储,所以我不能使用它们作为参考,谷歌并没有给我很多。任何帮助表示赞赏!
答案 0 :(得分:1)
按位OR http://www.php.net/manual/en/language.operators.bitwise.php
按位包含OR (5 = 0101)=(0 = 0000)| (5 = 0101) (5 = 0101)=(1 = 0001)| (5 = 0101) (7 = 0111)=(2 = 0010)| (5 = 0101) (5 = 0101)=(4 = 0100)| (5 = 0101) (13 = 1101)=(8 = 1000)| (5 = 0101)