App下载

demo_func_simplexml_load_string 在线工具

demo_func_simplexml_load_string 在线工具

<?php
$note=<<<XML
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
XML;

$xml=simplexml_load_string($note);
print_r($xml);
?>
运行结果