function xml2arr($xml){
    $obj  = simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA);
    $json = json_encode($obj);
    $arr  = json_decode($json, true);
    return $arr;
 }

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2022-02-03
  • 2022-02-06
  • 2021-07-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案