<?php[![enter image description here][1]][1]
$try = simplexml_load_file("https://www.theguardian.com/football/series/footballweekly/podcast.xml") ;
echo "<pre>" ;
print_r($try) ;
echo "</pre>" ;
Then I try to echo $try->language
or $try->item[0]->titel
. Nothing shows, so how can I access this object?
You're missing out one level of XML:
$try->channel->language
$try->channel->item[0]->title
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.