×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Jorge Luis Romero Castañeda
Added: Jun 25, 2014 5:40 PM
Views: 34
Tags: no tags
string XML to JSON
  1. $xml = simplexml_load_string($xml_string);
  2. $json = json_encode($xml);
  3. $array = json_decode($json,TRUE);