<posted & mailed>
mike wrote:
> I made this at one point:
>
> function array2xml($array, $complete = true) {
> $xml = "<$array[NODE] ";
> unset($array['NODE']);
> ksort($array);
> foreach(array_keys($array) as $key) {
> $xml .= "$key=\"$array[$key]\" ";
> }
> if($complete) {
> $xml .= "/";
> }
> $xml .= ">";
> return $xml;
> }
What about the reverse - converting the XML back to MySQL?
(I'm interested for an address book project,
but don't know too much of XML or mySQL!)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php