Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8383065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:04:21+00:00 2026-06-09T17:04:21+00:00

I just ask if it is possible to get keys from $_GET … I

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:04:22+00:00Added an answer on June 9, 2026 at 5:04 pm

    array_keys(); will return an assoc array of keys from the passed param.

    $arrKeys = array_keys($_GET);//$arrKeys will now contain all keys of $_GET (as an array)
    

    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:

    echo $_GET['myKey'];//which will print the value of the 'myKey' element
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just want to ask: How do you get an application, using Microsoft Visual
Im new to watir and running scripts from it. Just want to ask if
just wanted to ask where I define initial class properties? From other languages I
Just want to ask if i can use Custom Validator in client side without
I just wanted to ask if it's possible to create a shopping cart with
As the question's title says, I want to get the system information (like OS
Here's an interesting problem that I have just come across. It is possible to
I would like to ask about best practices or the simplest way possible of
I would just like to ask some help in constructing a regex formula for
I am getting frustrated with Google query's on code so I'll just ask all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.