php接收,解析xml数据 $html = file_get_contents($url); libxml_disable_entity_loader(true);//禁止xml中再次引用其他xml实体 $arrays = json_decode(json_encode(simplexml_load_string($html, 'SimpleXMLElement', LIBXML_NOCDATA)), true); dump($arrays );