PHP Classes

File: sample_reflect.php

Recommend this page to a friend!
  Classes of Tom Schaefer   QXML   sample_reflect.php   Download  
File: sample_reflect.php
Role: Example script
Content type: text/plain
Description: Reflect a class and transform to xml; could be used for documentation
Class: QXML
XML <> Array (preserve attrib.), JSON, etc.
Author: By
Last change: -adding missing includes
Date: 16 years ago
Size: 310 bytes
 

Contents

Class file image Download
<?php

include_once("QXML.class.php");
include_once(
"QSet.class.php");
include_once(
"QReflection.class.php");
include_once(
"QTransform.class.php");

$object = new QReflection("QTransform");
$xml = new QXML;
$xml->toXML($object->getArray());
header("content-type:text/xml");
echo
$xml->asXML();

?>