$xml = simplexml_load_string($xmlStr);
$json = json_encode($xml);
PHP将xml转换为json
最新推荐文章于 2023-07-25 09:33:56 发布
$xml = simplexml_load_string($xmlStr);
$json = json_encode($xml);