ph获取xml文件信息

 simplexml_load_file()方法

$xml = simplexml_load_file("1.xml");
foreach ($xml -> children() as $child){
echo $child.'<br>';
}
原文地址:https://www.cnblogs.com/sontan/p/7002288.html