Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在检查Php 中包括OR的按位NOT运算符,但不明白为什么输出为 -1。有没有人可以解释为什么输出是以下代码的 1?提前致谢
$x = 15; $y = 3; echo $x | ~$y; Output: -1;