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

  • Home
  • SEARCH
  • 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 9300949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:54:12+00:00 2026-06-18T22:54:12+00:00

i am at prototype stage. I have a link in page1.php that sends to

  • 0

i am at prototype stage. I have a link in page1.php that sends to page below:

http://localhost/sayfa.php?rd_dil=turkish&rd_sayfa=yazilar&rd_yazar=ali_uysal&rd_baslik=kalem_ucu"

in this page, echo $_GET['rd_dil'] works and displays turkish but echo $_GET[0] displays a Notice : Undefined offset: 0

so I want to work with $_GET in numerical way (numerical index) ? how can I achieve this aim? I read php.net + stack overflow and googled but I couldn’t solve my issue.

  • 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-18T22:54:13+00:00Added an answer on June 18, 2026 at 10:54 pm

    $_GET is an assoziative array, to loop over it:

    foreach($_GET as $key=>$value) {
       ....
    }
    

    In case you want only the values in a numeric array, you could use:

    $myData = array_values($_GET);
    // here you have a numeric array containing the $_GET values
    echo $myData[0];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use PHP and javascript via prototype. i have a threaded comments page that
I am writing a prototype auction/listings project in PHP (MySQL backend). I have a
I have a line of code in JavaScript, using prototype, that is run several
We have an old page written in Classic ASP that makes calls to an
I'm working on a program prototype that (at the current stage) just needs to
While working on my Silverlight4 SketchFlow prototype I have a datagrid that has a
I'm trying to create a prototype of a State Machine Workflow that is hosted
I have a code that runs on an embedded system and it has to
Suppose I have some javascript code like this: function Person(){} var pro=Person.prototype; pro[setName]=function(){} pro[setAge]=function(){}
I'm writing a userscript for a website that uses Prototype. Rather than use the

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.