语法错误意外T_BOOLEAN_OR [英] syntax error unexpected T_BOOLEAN_OR
本文介绍了语法错误意外T_BOOLEAN_OR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我很确定它可能(或)导致了其中之一.
I'm pretty sure its probably ( or ) that is causing it maybe one too many of them.
$filechk1 = "/temp/files/" . $data[0] . ".doc";
$filechk2 = "/temp/files/" . $data[1] . ".doc";
$dirchk1 = "/temp/files/" . $batchid . "/" .$data[0] . ".doc";
$dirchk2 = "/temp/files/" . $batchid . "/" . $data[1] . ".doc";
if(is_file($filechk1) && (is_file($filechk2))) || (is_file($dirchk1) && (is_file($dirchk2))){
...
}
推荐答案
括号不正确.需要是这个.
Incorrectly placed parentheses. Needs to be this.
if ((is_file($filechk1) && is_file($filechk2)) || (is_file($dirchk1) && is_file($dirchk2)))
这篇关于语法错误意外T_BOOLEAN_OR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文