早睡早起,方能养生!
Sleep early rise early, square can preserve one's health!

xml转数组

super
2019-03-19 15:11
views 703
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