获取的XML如下:
{"status":"failed","result":"未知错误"}
我如何获取string值呢
------解决思路----------------------
header('Content-type: text/html;charset=utf-8');
$s =<<< XML
{"status":"failed","result":"未知错误"}
XML;
$x = @simplexml_load_string($s);
echo $x[0];{"status":"failed","result":"未知错误"}