ama*_*mal 3 php xml arrays type-conversion
鉴于此对象:
stdClass Object (
[customerdata] => <TPSession userid="22" CustomerId="123456"LoginId="123456"/><TPSession userid="26" CustomerId="1234567"LoginId="1234567" />
)
Run Code Online (Sandbox Code Playgroud)
如何使用PHP将此XML数据转换为数组?