📜  php 从 url 读取 xml - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:04.990000             🧑  作者: Mango

代码示例2
$xml=simplexml_load_file("filename.xml") or die("Error: Cannot create object");
echo $xml->detaildata->lattitude; // As SimpleXMLElement Object
// ... OR ...
echo $xml->detaildata->lattitude->__toString(); // As String