Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert xml to json php

$xml = simplexml_load_string($xml_string);

// convert to json
$json = json_encode($xml);

// make array
$array = json_decode($json,TRUE);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #xml #json #php
ADD COMMENT
Topic
Name
5+9 =