Posted by Man-wai Chang on 04/17/07 03:44
> function arrayToXML($a) { > $xml = ''; > foreach($a as $k => $val) > $xml .= "<$k>" . (is_array($val) ? arrayToXML($val) : $val) . > "</$k>"; > > return $xml; > } > this one should do. Thanks. -- iTech Consulting Services Limited Expert of ePOS solutions Website: http://www.itech.com.hk (IE only) Tel: (852)2325 3883 Fax: (852)2325 8288
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming