I'm not sure why this code is causing this syntax error but the error I'm getting is : Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND) in /srv/m/a-1.php on line 12
And the code:
if ($valid != FALSE) && (!isset($_COOKIE['set'])) {
What needs to be fixed?
丢失的 ”(”
if ( ($valid != FALSE) && (!isset($_COOKIE['set'])) ) {
You're missing a (
and final )
.
It should read
if (($valid != FALSE) && (!isset($_COOKIE['set']))) {
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.