打印用echo 别用var_dump print_r之类的。。。
顺手记录下xml转数组
$xml = simplexml_load_string($data,NULL,LIBXML_NOCDATA); $array=json_decode(json_encode($xml),true);