跪求帮忙解析,急!!!

1。第三方调用我的接口,带给我的xml文件,我用
$xmldata = file_get_contents("php://input")获取内容,得到如下格式的数据

'xml=%3C%3Fxml+version%3D%221.0%22+encoding%3D%22gbk%22+%3F%3E%253Ctask%253E%253Cuser%253E%253Coper%253Emod%253C%252Foper%253E%253Cid%253E14001420%2540private.gb.gov%253C%252Fid%253E%253Cname%253E%25E5%25A7%259A%25E8%25BF%259C%253C%252Fname%253E%253Cusertype%253EUT01%253C%252Fusertype%253E%253Cgrade%253E%25E5%2586%2585%25E9%2583%25A8%253C%252Fgrade%253E%253Cdname%253E%25E6%2596%2587%25E7%2594%25B5%25E5%25A4%2584%253C%252Fdname%253E%253Cdid%253E2021013100%2540private.gb.gov%253C%252Fdid%253E%253Cdorder%253E1%253C%252Fdorder%253E%253Cdcode%253E%253C%252Fdcode%253E%253Csexual%253E0%253C%252Fsexual%253E%253Cduty%253E%253C%252Fduty%253E%253Cpost%253E%253C%252Fpost%253E%253Caccount%253E14001420%253C%252Faccount%253E%253Cpassword%253E%253C%252Fpassword%253E%253Cmail%253E%253C%252Fmail%253E%253C%252Fuser%253E%253C%252Ftask%253E&trustId=DataPush_SPDB'

求大神帮忙看一下怎么解析成正常的xml格式,或者是PHP数组

噜噜哒
浏览 754回答 3
3回答

撒科打诨

urlencode() 解析两次就可以啦~
打开App,查看更多内容
随时随地看视频慕课网APP