ballhogjoni Posted February 5, 2011 Share Posted February 5, 2011 Array ( [game] => Array ( [id] => 2011012593950636050 [name] => Array ( [us] => Castlevania II: Belmont's Revenge [uk] => Castlevania II: Belmont's Revenge ) echo print_r($this->game[0]['name']) but undefined offset error. I don't want to loop through the first array either. Thanks Link to comment https://forums.phpfreaks.com/topic/226806-how-do-i-access-the-second-array-name-key/ Share on other sites More sharing options...
trq Posted February 6, 2011 Share Posted February 6, 2011 echo $arr['game']['name'] Wherer $arr is your array. Link to comment https://forums.phpfreaks.com/topic/226806-how-do-i-access-the-second-array-name-key/#findComment-1170521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.