×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dmitriy Lanets
Added: Sep 23, 2015 8:35 AM
Modified: Sep 23, 2015 8:35 AM
Views: 17
Tags: php xml
  1. $xml = simplexml_load_string($content , "SimpleXMLElement", LIBXML_NOCDATA);
  2. $json = json_encode($xml);
  3. $array = json_decode($json,TRUE);