php 接收curl json xml 及解析xml

$json = file_get_contents("php://input");
$list = json_decode($json, true);

$SysNo=$list['SysNo'];

$aaa = file_get_contents('C:\Users\Administrator\Desktop\notify.xml'); $str = str_replace("\n", "", $aaa); $bbb = json_decode($str,True); libxml_disable_entity_loader(true); $values = json_decode(json_encode(simplexml_load_string($bbb['Data'], 'SimpleXMLElement', LIBXML_NOCDATA)), true); var_dump($values);

猜你喜欢

转载自blog.csdn.net/qq_24094887/article/details/80176651
今日推荐