php xml转数组

<?php

 libxml_disable_entity_loader(true);
            $notify_values = json_decode(json_encode(simplexml_load_string($xmlReturn, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
原文地址:https://www.cnblogs.com/phpwyl/p/12696541.html