xml转化为数组

function xml_to_array($xml)
{
    return json_decode(json_encode(simplexml_load_string($xml)), true);
}

 

posted @ 2017-05-03 14:28  小昌君  阅读(461)  评论(0)    收藏  举报