<?
require_once("xml.php");
$xml = new XML();
$arr = array(
"a",
array(
"b1",
"b2"
),
array(
"c1",
array(
"key" => "c2.1"
)
),
"d"
);
$str_xml = $xml->array_to_xml($arr, "response", " ");
print $str_xml;
print "\n----------------------------------------------------\n";
$arr1 = $xml->xml_to_array($str_xml);
print_r($arr1);
?>
|