php xml转数组

<?php

 libxml_disable_entity_loader(true);
            $notify_values = json_decode(json_encode(simplexml_load_string($xmlReturn, 'SimpleXMLElement', LIBXML_NOCDATA)), true);

 

posted @ 2020-04-14 11:00  phpwyl  阅读(317)  评论(0编辑  收藏  举报