📜  php xml 到数组 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:29.955000             🧑  作者: Mango

代码示例2
$xmlfile = file_get_contents($path);
        $ob= simplexml_load_string($xmlfile);
        $json  = json_encode($ob);
        $configData = json_decode($json, true);