如何在php中接受XML post请求?

如何在php中接受XML post请求?,php,xml,request,Php,Xml,Request,对于android应用程序,数据需要作为xml请求发布到php文件。 如何在php端读取XML请求。使用和获取原始输入 $content = file_get_contents('php://input');

对于android应用程序,数据需要作为xml请求发布到php文件。 如何在php端读取XML请求。

使用和获取原始输入

$content = file_get_contents('php://input');