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