【发布时间】:2023-03-28 16:46:01
【问题描述】:
我想用 PHP 的 str_replace 函数替换这个标签中的值:
<address2>Replace this value</address2>
最好的方法是什么?
【问题讨论】:
-
@KrzysztofRaciniewski 感谢您的回复。我没有为此加载 XML 文件。但是,我发现这个看起来很方便:php.net/manual/en/ref.simplexml.php
标签: php