php - Fetching remote XML file returns strange string -
i've got weird problem. when go url in browser, nicely formatted xml structure in return.
<root> <contents/> </root>
(fake data though)
but when use curl, file_get_contents (or wget in linux) sort of serialized data wich unusable me.``
{"root:{"contents etc.
anyone knows why , how fix it?
it's json.
use json_decode
function parse it.
Comments
Post a Comment