simplexml_load_file()方法
$xml = simplexml_load_file("1.xml");
foreach ($xml -> children() as $child){
echo $child.'<br>';
}
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