Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php xml to json

foreach($xml->children() as $state)
{
    $states[]= array('state' => (string)$state->name); 
}       
echo json_encode($states);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #xml #json
ADD COMMENT
Topic
Name
8+8 =