PHP自定义函数xmlToArray的实例解析PHP自定义函数xmlToArray实例将xml转为array/** * 作用:将xml转为array */function xmlToArray($xml) { //将XML转为array $array_data = jso 1