Jump to content

[SOLVED] Multidimension Array Help


ErikSean

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.