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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:37:13+00:00 2026-05-26T12:37:13+00:00

If I do var_dump($this->reports); I have an array that looks like this: array(15) {

  • 0

If I do var_dump($this->reports);

I have an array that looks like this:

array(15) {
["Terry CS"]=>
array(1) {
["2011-10-26"]=>
array(2) {
  [0]=>
  string(5) "69.90"
  [1]=>
  string(5) "69.90"
}
}
["2011-10-27"]=>
array(3) {
  [0]=>
  string(6) "199.50"
  [1]=>
  string(6) "199.50"
  [2]=>
  string(5) "69.90"
}
}
["Lisa CS"]=>
array(1) {
["2011-10-26"]=>
array(1) {
  [0]=>
  string(5) "69.90"
}
}
}

how do I read through it so I can data in a table or list?

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-05-26T12:37:14+00:00Added an answer on May 26, 2026 at 12:37 pm

    You can use foreach to iterate on an array:

    foreach ($this->reports as $key => &$value) {
        var_dump($key, $value); 
    }
    

    If you want access to a specific data you can do this:

    var_dump($this->reports["Terry CS"]);
    

    More information here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an array, which if i do a var_dump() looks like this: array(5)
I have a var_dump($v) like this: object(SimpleXMLElement)#2 (3) { [@attributes]=> array(1) { [class]=> string(6)
I have an array like this (below is the var_dump) array 0 => object(stdClass)[11]
I'm using symfony 1.4.8 and I have some code that basically looks like this
i have this two lines: var_dump($parametros_post_signin); $this->redirect('prueba/aux?email='.$parametros_post_signin['signin']); the first one prints this: array 'signin'
My var_dump is returning this: array(5) { [radioinput]=> string(12) sidebar-left [option1]=> int(0) [sometext]=> string(0)
I get this array from a function (var_dump()): ...{ [0]=> string(7) user_id } [1]=>
When I var_dump an object, the output looks like this: object(XCTemplate)#2477 (4) { [id]=>
Here is my string $newPath = '/~new/assets/js/../packages/prettyphoto/js/jquery.prettyPhoto.js'; Now check this output var_dump($newPath); // string(64)
I'd like to capture the output of var_dump to a string. The PHP documentation

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.