Beispiel #1
0
<?php

include 'array2xml.php';
$array = array('some' => 'info', 'more' => 'info2');
$obj = new array2xml($array);
//$array is now stored in this class... but you can access method from $obj
echo $obj->generateXML($array);
//this way you are passing array
echo $obj->generateXMLInternally();
//using array which you init in array2xml object.