之前这么写的if(isset($_POST['num']))现在加个条件写成了这样if(isset(($_POST['num'])||($_GET['page'])) 但是这样写报错了 我这样写不对吗?应该怎么改呢? ( ! ) Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in D:wampwwwqq.php on line 76
之前这么写的if(isset($_POST['num']))现在加个条件写成了这样if(isset(($_POST['num'])||($_GET['page'])) 但是这样写报错了 我这样写不对吗?应该怎么改呢? ( ! ) Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in D:wampwwwqq.php on line 76
isset中只能是变量,不能是表达式。
可以改为:
<code>if (isset($_POST['num']) || isset($_GET['page'])) { // TODO }</code>