function xml_to_array($xml) { return json_decode(json_encode(simplexml_load_string($xml)), true); }
function xml_to_array($xml) { return json_decode(json_encode(simplexml_load_string($xml)), true); }
转载于:https://www.cnblogs.com/liaokaichang/p/6801760.html