Mark一下,其实方法很简单

$xml = json_decode(json_encode((array) simplexml_load_string($string)), 1);

 

相关文章: