need help in converting xml to array |
http://php.net/manual/en/book.simplexml.php
Try this:: Three line xml2array: <?php $xml = simplexml_load_string($xmlstring); $json = json_encode($xml); $array = json_decode($json,TRUE); ?> Ta da! |
Messages In This Thread |
need help in converting xml to array - by goel.sandy86 - 04-10-2016, 12:28 PM
RE: need help in converting xml to array - by cartalot - 04-10-2016, 12:35 PM
RE: need help in converting xml to array - by goel.sandy86 - 04-10-2016, 01:45 PM
RE: need help in converting xml to array - by John_Betong - 04-10-2016, 05:47 PM
RE: need help in converting xml to array - by PaulD - 04-10-2016, 06:47 PM
|