主页
PHP
PHP 运算符
tryphp_oper_xor
运行 ❯
×
更改方向
保存代码
更改主题
The xor Operator
Write a message if one of the conditions are true, bot not if both conditions are true.
<?php $x = 100; $y = 50; if ($x == 100 xor $y == 80) { echo "Hello world!"; } ?>
The xor Operator
Write a message if one of the conditions are true, bot not if both conditions are true.
Hello world!