php xml转数组

来源:互联网 发布:温州市公务员网络学堂 编辑:程序博客网 时间:2024/04/29 17:07
<?php
$str=file_get_contents('http://。。。。Notice.xml');
$res = @simplexml_load_string($str,NULL,LIBXML_NOCDATA);
$res = json_decode(json_encode($res),true);
print_r($res);

?>
0 0
原创粉丝点击