Answers for "php read xml file into array"

PHP
0

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);
Posted by: Guest on March-20-2020
0

php read xml file into array

$get = file_get_contents('http://steamcommunity.com/groups/starhawk/memberslistxml/?xml=1.xml');
$arr = simplexml_load_string($get);
print_r($arr);
Posted by: Guest on August-11-2021

Browse Popular Code Answers by Language