walter2014 Posted June 5, 2015 Share Posted June 5, 2015 I want to acces the values in a multidimensional array. I just dont get there without error. Can someone take alook and help me the code is found at: http://pastebin.com/JUku2v5a Thanks Quote Link to comment https://forums.phpfreaks.com/topic/296654-multi-dimensioanl-array-acces/ Share on other sites More sharing options...
ginerjm Posted June 5, 2015 Share Posted June 5, 2015 Post the relevant code and give us the exact error message and line number Quote Link to comment https://forums.phpfreaks.com/topic/296654-multi-dimensioanl-array-acces/#findComment-1513248 Share on other sites More sharing options...
Muddy_Funster Posted June 5, 2015 Share Posted June 5, 2015 what exactly do you want to do? an array of objects isn't the same as an array of arrays. //example using forech: foreach($array as $key=>$object){ echo $object->id; } //example using direct pointer $object = $array[0]; echo $object->id; Quote Link to comment https://forums.phpfreaks.com/topic/296654-multi-dimensioanl-array-acces/#findComment-1513249 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.