我有以下字符串
<DReport>
<message
id="1023012301"
sdate="2005/7/19 22:0:0"
ddate="2005/7/19 22:0:0"
status="N" />
</DReport>
如何将此字符串解析为 PHP 数组
$report = array(
"id"=>"1023012301",
"sdate"=>"2005/7/19 22:0:0",
"ddate"=>"2005/7/19 22:0:0",
"status"=>"N"
);