How to test if php get variable is set

Testing to see if a php get variable is set is a very easy thing to do.

All you need is this one line.

array_key_exists('nameofgetvariable', $_GET)

Comments

Popular posts from this blog

Vim vi how to reload a file your editing