Page 1 of 1

how to get name of GET variables present in url?

Posted: Sun Sep 05, 2010 4:03 am
by dentrite
hi, i have seen in sites like facebook that they use url like this page.php?showcomment&storyid=1 i want to know the names of variables that are present but not set to a value like showcomments in above example.in simple words i want to check the presence of variable if present some output and it not something else. thanks

Re: how to get name of GET variables present in url?

Posted: Sun Sep 05, 2010 5:05 am
by requinix
Tip:

Code: Select all

var_dump($_GET);
Then look at the output. The answer is there.