0

我正在检查Php 中包括OR的按位NOT运算符,但不明白为什么输出为 -1。有没有人可以解释为什么输出是以下代码的 1?提前致谢

$x = 15;
$y = 3;

echo $x | ~$y;

Output: -1;
4

0 回答 0