xml转json
$html = file_get_contents(‘http://‘,FALSE,$context); $json2 = json_decode(json_encode(simplexml_load_string($html, ‘SimpleXMLElement‘, LIBXML_NOCDATA)), true);
就这么简单
原文:https://www.cnblogs.com/iStu/p/14776848.html
$html = file_get_contents(‘http://‘,FALSE,$context); $json2 = json_decode(json_encode(simplexml_load_string($html, ‘SimpleXMLElement‘, LIBXML_NOCDATA)), true);
就这么简单
原文:https://www.cnblogs.com/iStu/p/14776848.html