简单的 XML 帮助!
我需要一些帮助,
我需要做的就是将“HERE”更改为 $date 的值
$line1 = $sxe->addChild("date","HERE");
如何将 $date 的值添加到“HERE”所在的区域?
请帮忙
I need some help ,
All I need to do is change "HERE" to a the value of $date
$line1 = $sxe->addChild("date","HERE");
How can I add the value of $date into the area were "HERE" is ?
Please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
编辑:实际上,除非
date
节点存在,否则以下内容不会起作用。听听其他人的意见...我们看到我实际使用 SimpleXml 修改结构的频率;-)$sxe->date = $date;
EDIT: Actually the following wont work unless the
date
node exists. Listen to the others... We see how often i actually modify structure with SimpleXml ;-)$sxe->date = $date;