tyra Posted February 8, 2010 Share Posted February 8, 2010 foreach ($rss->item as $item) { echo $item->title; } how can i get this output to array? So i can call titles separately like $title[0], $title[1] and so on. Link to comment https://forums.phpfreaks.com/topic/191319-foreach-to-array/ Share on other sites More sharing options...
trq Posted February 8, 2010 Share Posted February 8, 2010 Judging by your code $rss->item is already an array. Link to comment https://forums.phpfreaks.com/topic/191319-foreach-to-array/#findComment-1008706 Share on other sites More sharing options...
tyra Posted February 8, 2010 Author Share Posted February 8, 2010 Thanks for replay! woks fine ! Link to comment https://forums.phpfreaks.com/topic/191319-foreach-to-array/#findComment-1008789 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.