【问题标题】:Adding dynamic variables to html content using php使用 php 向 html 内容添加动态变量
【发布时间】:2021-12-29 08:49:55
【问题描述】:

我在 MySQL 数据库中保存了一些 html 模板,我需要将检索到的 html 模板与一些变量混合,但是当我这样做时,我得到的是打印的变量名而不是它的值。 我该如何解决这个问题??

【问题讨论】:

标签: php html mysql


【解决方案1】:

我使用了 str_replace 函数,它对我来说很好用。 谢谢

【讨论】:

    猜你喜欢
    • 2014-02-26
    • 1970-01-01
    • 1970-01-01
    • 2013-06-02
    • 1970-01-01
    • 1970-01-01
    • 2013-02-05
    • 2018-07-28
    • 1970-01-01
    相关资源
    最近更新 更多