http://www.bank.lv/vk/xml.xml?date=20130530
$url = 'http://www.bank.lv/vk/xml.xml?date=20130530'; $xml = simplexml_load_file($url) or die("feed not loading"); $Rate = $xml->Currency[1]->Rate; echo $Rate; echo 'BREAK HTML'; echo "-----"; echo "// "; var_dump($xml); echo " //";
为什么 HTML 数据不输出?测试了很多教程,但不明白如何从这个 XML 输出数据