php最简单把xml转换成数组的方法

 

$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

posted @ 2014-08-30 12:01  肥羊集团  阅读(124)  评论(0编辑  收藏  举报