早睡早起,方能养生!
Sleep early rise early, way to keep healthy!

xml转数组

super
2019-03-19 15:11
views 979

function xmlToArray($xml)
{
    libxml_disable_entity_loader(true);
    $array = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
    return $array;
}




分享
0 条讨论
top