note 101856 deleted from reserved.variables.get by peehaa
| From: | peehaa@php.net | Date: | Sun, 28 Apr 2019 10:59:51 +0000 |
| Subject: | note 101856 deleted from reserved.variables.get by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210852@lists.php.net to get a copy of this message | ||
Note Submitter: Daniel M
----
If you need to find out whether any GET variables have been specified, you can use the empty()
function.
<?php
if(empty($_GET))
echo "No GET variables";
else
print_r($_GET);
?>
empty() - http://php.net/manual/en/function.empty.php
print_r() - http://php.net/manual/en/function.print-r.php