<?PHP $str='<xml><node><![CDATA[content]]></node></xml>'; $res = @simplexml_load_string($str,NULL,LIBXML_NOCDATA); $res = json_decode(json_encode($res),true); print_r($res); ?>原文链接:https://www.f2er.com/xml/298548.html
<?PHP $str='<xml><node><![CDATA[content]]></node></xml>'; $res = @simplexml_load_string($str,NULL,LIBXML_NOCDATA); $res = json_decode(json_encode($res),true); print_r($res); ?>原文链接:https://www.f2er.com/xml/298548.html