ErikSean Posted July 30, 2009 Share Posted July 30, 2009 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) Quote Link to comment https://forums.phpfreaks.com/topic/168177-solved-multidimension-array-help/ Share on other sites More sharing options...
Philip Posted July 30, 2009 Share Posted July 30, 2009 $array['2009-7-30'][0][0] vs $array['2009-07-30'][0][0] Quote Link to comment https://forums.phpfreaks.com/topic/168177-solved-multidimension-array-help/#findComment-886987 Share on other sites More sharing options...
ErikSean Posted July 30, 2009 Author Share Posted July 30, 2009 Hi, my name is Erik and I'm stupid. I think I've been working too much this week if I missed that ... thank you, thank you, and again, thank you. Quote Link to comment https://forums.phpfreaks.com/topic/168177-solved-multidimension-array-help/#findComment-886994 Share on other sites More sharing options...
Philip Posted July 30, 2009 Share Posted July 30, 2009 Haha, no problem. We always overlook the smallest of details sometimes Quote Link to comment https://forums.phpfreaks.com/topic/168177-solved-multidimension-array-help/#findComment-886996 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.