ph获取xml文件信息

 simplexml_load_file()方法

$xml = simplexml_load_file("1.xml");
foreach ($xml -> children() as $child){
echo $child.'<br>';
}
posted @ 2017-06-13 17:07  朴信惠  阅读(151)  评论(0编辑  收藏  举报