Php 论坛xml重定向链接
如何使用example2.com链接Php 论坛xml重定向链接,php,xml,Php,Xml,如何使用example2.com链接 <response> <redirect> example2.com </redirect> <code>0</code> <description>OK</description> </response> 从另一个基于example.com链接的XML基础(信息)页面simplexml\u load\u string()函数解析XML字符串并返回数组 $xml
<response>
<redirect>
example2.com
</redirect>
<code>0</code>
<description>OK</description>
</response>
从另一个基于example.com链接的XML基础(信息)页面
simplexml\u load\u string()
函数解析XML
字符串并返回数组
$xml = '<?xml version='1.0'?><response>
<redirect>
example2.com
</redirect>
<code>0</code>
<description>OK</description>
</response>';
$array = simplexml_load_string($xml);
print_r($xml);
你怎么试过的?你做了什么?出了什么问题?