/**
* xml转数组
* @param $xml
* @return mixed
*/
public static function xmlToArray($xml){
libxml_disable_entity_loader(true);
$arr = json_decode(json_encode(simplexml_load_string($xml, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
return $arr;
}