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.
当有一个 if 语句时:
if (var1 == "test" || var2 == "test")
当 var1 已经测试为 true 并且因此不测试 var2 时,PHP 会停止测试吗?我知道 C# 没有,但我对 PHP 不太确定
仅当特定运算符短路时,布尔运算符才会这样做。