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 8507363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:51:02+00:00 2026-06-11T02:51:02+00:00

Sorry to bother with such a stupid question, but I’m teaching myself PHP and

  • 0

Sorry to bother with such a stupid question, but I’m teaching myself PHP and I’m having trouble with the basics.

I have the following:

$members
: array = 
  0: array = 
    0: string = 19637
    theID: &string = 19637
    1: string = 4GM1  
    Code: &string = 4GM1  
    2: string = MARTIN
    Name: &string = MARTIN

How should I represent this in my code?

I’m doing:

$members = array( array( theID=> "19637", 
              Code => "4GM1",
              Name => "MARTIN"
   ));

But this shows in the debugger like:

$members 
: array = 
  0: array = 
    theID: string = 19637
    Code: string = 4GM1
    Name: string = MARTIN

Thanks a lot !

  • 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-11T02:51:04+00:00Added an answer on June 11, 2026 at 2:51 am

    This should work:

    $members = array(
      array(
             0  => '19637',
        'theID' => '19637',
    
             1  => '4GM1',
         'Code' => '4GM1',
    
             2  => 'MARTIN',
         'Name' => 'MARTIN'
      )
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I am sorry to bother you with such a simple question but this
Sorry to bother you with such a simple question, but I'm stuck here since
Sorry to bother you but I'm having some trouble with my preg_match parameters. This
Sorry to bother you with this question, but I have a question regarding quota
Sorry to bother you folks. But i have a simple question. Ho can I
Sorry to bother again, but as I am new C++ I am having a
Hey Everyone, Sorry to bother you with this, but I'm having an issue with
sorry to bother you with this question, but after hours of googleing and browsing
Sorry gals & guys for a potentially dumb question but I have been looking
Sorry to bother - perhaps this is a very simple question - but for

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.