Posts Tagged ‘XML2ARRAY’

PHP xml to array

by on Wednesday, March 6th, 2013

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