在PHP中将关联数组转换为XML [英] convert associate array to XML in php
本文介绍了在PHP中将关联数组转换为XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将关联数组转换为XML字符串?我找到了,但是在运行该行时收到错误消息在非对象上调用成员函数addChild()"
How do i convert an associate array to an XML string? I found this but get the error 'Call to a member function addChild() on a non-object' when running the line
$node = $xml->addChild($key);
推荐答案
使用PHP 查看全文