Posted by ZeldorBlat on 05/07/07 14:02
On May 7, 6:40 am, gezerpunta <css...@gmail.com> wrote:
> Hi
>
> Is there a standart function in php5 lib ? where can I find it which
> is stable.
>
> thks.
It isn't that hard to do it yourself:
function arrayToXML($a) {
$xml = '';
foreach($a as $k => $v)
$xml .= "<$k>" . (is_array($v) ? arrayToXML($v) : $v) . "</
$k>";
return $xml;
}
[Back to original message]
|