Jump to content

Recommended Posts

Hi ... having a problem accessing elements of an array. I know the data is there - I can print it out via print_r (reproduced below) but acessing an element like this:

 

$array['2009-7-30'][0][0] 

 

produces no result. Can anyone help me access data in my array?

 

 

print_r dump below:

Array

(

    [2009-07-30] => Array

        (

            [0] => Array

                (

                    [0] => 00:30:00

                    [1] =>

                    [2] => 01:08:00

                    [3] =>

                    [4] => 38

                    [5] => THROUGH TRAIN

                    [6] => N

                )

 

            [1] => Array

                (

                    [0] => 01:20:00

                    [1] =>

                    [2] => 01:58:00

                    [3] =>

                    [4] => 38

                    [5] => THROUGH TRAIN

                    [6] => N

                )

etc ... (its big did not reproduce entire thing)

Link to comment
https://forums.phpfreaks.com/topic/168177-solved-multidimension-array-help/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.