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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:04:53+00:00 2026-06-08T16:04:53+00:00

My PHP Array (example, Print_r dump) Array ( [0] => Array ( [Nick] =>

  • 0

My PHP Array (example, Print_r dump)

Array
(
    [0] => Array
        (
            [Nick] => Bobby
            [FullName] => Bob Smith
        )

    [1] => Array
        (
            [Nick] => Mikey
            [FullName] => Mike Smithers
        )

)

If I don’t know the values “Nick” or “FullName” how can I access the values in them.

The array will have two values and I was looking to understand how to get access to them if I don’t know the name of it.

I would like it to print out (for example)

Output example trying to get to:
“Value one is Bobbie value two is Bob Smith “

but I don’t know [Nick] or [FullName] how would one access “Bobbie” or “Bob Smith” (Array being passed in)

Thanks.

  • 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-08T16:04:54+00:00Added an answer on June 8, 2026 at 4:04 pm
    foreach($list as $array) { 
        foreach($array as $key => $value) {
            echo "The value of {$key} is: {$value}";
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: PHP replaces spaces with underlines Example: test.php?foo.bar=1 print_r($_GET); // Array ( [foo_bar]
I have a PHP array which looks like this example: $array[0][0] = 'apples'; $array[0][1]
Is it possible to assign php array in MySQL IN() function? for example, $numbers
Tech used: PHP 5.3.10 Hi, I have an array (example below) I need to
For example: A.php (the config file): <?php $a = array('name'=>'wine[$index][name]', 'value'=>'wine[$index][value]' ) ?> B.php:
This is an example of a mixed, multi-level, irregular array in php: $settings['style_formats'] =
How can I return multidimensional array keys in tree format in PHP? For example,
How does PHP array_keys do the search for value? Example: $array2 = array(xyz, xyz,
I made an PHP OOP Cart Class like this print_r($_SESSION[cart]); the result is: Array
For some reason my checkbox array values don't show up in $_POST. For example:

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.