$xml= $this->getToken($url); $rs =simplexml_load_string (urldecode( $xml) ) ; $rs = json_decode( json_encode($rs) , true);
json相关编码问题:http://www.nowamagic.net/php/php_JsonDecode.php
php最简单把xml转换成数组的方法
原文:http://www.cnblogs.com/likers/p/3946271.html