开发者

syntax error unexpected T_BOOLEAN_OR

开发者 https://www.devze.com 2023-01-29 21:54 出处:网络
I\'m pretty sure its probably ( or ) that is causing it maybe one too many of them. $filechk1 = \"/temp/files/\" . $data[0] . \".doc\";

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开发者_StackOverflow中文版/" . $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)))
0

精彩评论

暂无评论...
验证码 换一张
取 消