I just ask if it is possible to get keys from $_GET …
I want to do a switch statement like
switch($_GET key) //here I don't know
{
case "login": .... break; //if "login" key exists in $_GET then show page.
....
}
Sorry for idiot question
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
array_keys();will return an assoc array of keys from the passed param.Take a look at: array_keys()
If you already know the key, and want the value of a specific element from the key, do this: