Saturday, 4 February 2017

php - Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting '(' in





$command = $_POST['cmd'];
$args = $_POST['args'];

if($args == !empty && $command != 'reload'){

}


Thanks guys, got it working!


Answer




empty is a function.



$command = $_POST['cmd'];
$args = $_POST['args'];
if(!empty($args) && $command != 'reload'){

}

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...