By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,348 Members | 1,397 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,348 IT Pros & Developers. It's quick & easy.

ArrayToXml function

P: n/a
Hi

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

thks.

May 7 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On May 7, 6:40 am, gezerpunta <css...@gmail.comwrote:
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;
}

May 7 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.