How should this judgment statement be written?

WBOY
Release: 2016-07-06 13:54:07
Original
1188 people have browsed it

The if(isset($_POST['num'])) written before is now added with a condition and written like this if(isset(($_POST['num'])||($_GET['page'] )) But I get an error when I write it like this. How should I change it? ( ! ) Fatal error: Cannot use isset() on the result of an expression (you can use "null !== expression" instead) in D :wampwwwqq.php on line 76

Reply content:

The if(isset($_POST['num'])) written before is now added with a condition and written like this if(isset(($_POST['num'])||($_GET['page'] )) But this is an error. How should I change it? ( ! ) 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 can only be variables, not expressions.
can be changed to:

<code>if (isset($_POST['num']) || isset($_GET['page'])) {
    // TODO
}</code>
Copy after login
Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!