Skip to content
Small & simple easy PHP function to convert xml to array using YQL.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
index.php
xmltoarray.php

README.md

XML-to-Array

Small & simple easy PHP function/helper to convert xml to array using YQL.

Usage:

// include xmltoarray.php
require('xmltoarray.php');

How to convert XML to Array DEMO:

$xml = 'http://anu.kom/data.xml';
$array = xmltoarray($xml);
print_r($array);

How to convert XML to JSON DEMO:

$xml = 'http://anu.kom/data.xml';
$array = xmltoarray($xml);
echo json_encode($array);
You can’t perform that action at this time.