How to Parse XML's Media:Content with PHP?
问题 I've found a great tutorial on how to accomplish most of the work at: https://www.developphp.com/video/PHP/simpleXML-Tutorial-Learn-to-Parse-XML-Files-and-RSS-Feeds but I can't understand how to extract media:content images from the feeds. I've read as much info as i can find, but i'm still stuck. ie: How to get media:content with SimpleXML this suggests using: foreach ($xml->channel->item as $news){ $ns_media = $news->children('http://search.yahoo.com/mrss/'); echo $ns_media->content; //