21,887
社区成员
发帖
与我相关
我的任务
分享
$xml = simplexml_load_string($string);
print_r($xml);
echo 1;
$xml = simplexml_load_string($string);
print_r($xml);
如果前面加个输出 就不报500,可以输出1;
请问该怎么解决?<?php
$string = <<<XML
<?xml version='1.0'?>
<document>
<title>Forty What?</title>
<from>Joe</from>
<to>Jane</to>
<body>
I know that's the answer -- but what's the question?
</body>
</document>
XML;
echo 1;
$xml = simplexml_load_string($string);
print_r($xml);
大神刚才搜资料 记得您回答过这个问题~