PHP xml to array

by admin on March 6th, 2013

 $xml = simplexml_load_string($data);
 $json = json_encode($xml);
 $response = json_decode($json,TRUE);
 print_r($response);exit;

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>