$xml = simplexml_load_file($fullfilename);
$arr = json_decode(json_encode($xml),true);
echo "<pre>"; print_r($arr); exit;
;
$xml = simplexml_load_file($fullfilename);
$arr = json_decode(json_encode($xml),true);
echo "<pre>"; print_r($arr); exit;
;
转载于:https://www.cnblogs.com/upup2015/p/7782499.html