Welcome Guest, Not a member yet? Register   Sign In
need help in converting xml to array
#4

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!
Reply


Messages In This Thread
RE: need help in converting xml to array - by John_Betong - 04-10-2016, 05:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB