我正在尝试使用 ("||") 运算符构建 PHPif
语句or
,但它似乎不起作用。
$country_code = "example_country_code";
if ($country_code != 'example_country_code' || !clientIscrawler()) {
echo 'the script can be executed';
}
else {
echo 'skipping';
}
对于给定的示例,它应该被回显跳过,但它不会那样发生。我究竟做错了什么?