php xml格式 转换数组
$xml = ''<notify>
<note>
<to>George</to>
<from>John</from>
<heading>Reminder</heading>
<body>Don\'t forget the meeting!</body>
</note>
</notify>';
$xml = simplexml_load_string($xml)
$note= (array)$xml->note;
php xml格式 转换数组
$xml = ''<notify>
<note>
<to>George</to>
<from>John</from>
<heading>Reminder</heading>
<body>Don\'t forget the meeting!</body>
</note>
</notify>';
$xml = simplexml_load_string($xml)
$note= (array)$xml->note;