ArrayToXml function

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Is there a standart function in php5 lib ? where can I find it which
is stable.


Re: ArrayToXml function

Quoted text here. Click to load it

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) . "</

    return $xml;

Site Timeline