php - How to check for ANY parameter existence in the URL? -


When I use any page.php version, which contains a parameter, Like:

page.php? Foo = 1 or page.php? Bar = 3

I have a $ var .

I only know if a specific parameter exists or not, how it is known:

  if (isset ($ _GET ['foo'])) $ Var = "yes";  

But how can I check that there is a parameter present?

$ _ GET Check the contents of the whole array:

  if (empty ($ _ GET)) {// do something}  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -