PHP Classes

File: demo.php

Recommend this page to a friend!
  Classes of Rex Roger Rayla   Yggdrasil   demo.php   Download  
File: demo.php
Role: Example script
Content type: text/plain
Description: Demo Usage of the class
Class: Yggdrasil
Convert a XML document to an array and vice-versa
Author: By
Last change:
Date: 13 years ago
Size: 300 bytes
 

Contents

Class file image Download
<pre>
<?php
   
//Initialization
   
include("yggdrasil.class.php");
   
$classtester = new yggdrasil;
   
   
//Demo
   
$classtester->read("data.xml");
   
$datatester = $classtester->createarray();
   
print_r($datatester);
    print
"<textarea>".$classtester->createnode($datatester)."</textarea>";

?>
</pre>