北风留影 发表于 2017-4-10 10:33:22

php最简单把xml转换成数组的方法

  php最简单把xml转换成数组的方法
  <?php
$str='<xml><node><!]></node></xml>';
$res = @simplexml_load_string($str,NULL,LIBXML_NOCDATA);
$res = json_decode(json_encode($res),true);
print_r($res);
页: [1]
查看完整版本: php最简单把xml转换成数组的方法