Login   Register  
PHP Classes
elePHPant
Icontem

File: xml2array.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Kirill Shvakov  >  Simple XML Array Helper  >  xml2array.php  >  Download  
File: xml2array.php
Role: Example script
Content type: text/plain
Description: Xml to Array example
Class: Simple XML Array Helper
Generate or convert XML documents into arrays
Author: By
Last change:
Date: 2011-03-13 23:55
Size: 147 bytes
 

Contents

Class file image Download
<?php
require 'SimpleXMLArrayHelper.php';
$sx = new SimpleXMLArrayHelper();
print_r($sx->setXml(dirname(__FILE__) . '/collection.xml')->asArray());