Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert xml file to array php

$xmlfile = file_get_contents($path);
		$ob= simplexml_load_string($xmlfile);
		$json  = json_encode($ob);
		$configData = json_decode($json, true);
Source by www.phpflow.com #
 
PREVIOUS NEXT
Tagged: #convert #xml #file #array #php
ADD COMMENT
Topic
Name
6+5 =