postman用post方式发送xml数据

发送xml数据PHP的接收方式是

 

$fileContent = file_get_contents("php://input");
$xmlResult = simplexml_load_string($fileContent ,'SimpleXMLElement', LIBXML_NOCDATA);
$data = json_decode(json_encode($xmlResult),true);
p($data);die;

发布了133 篇原创文章 · 获赞 47 · 访问量 22万+

猜你喜欢

转载自blog.csdn.net/dabao87/article/details/104049737
今日推荐