【发布时间】:2020-06-06 08:49:51
【问题描述】:
我正在尝试在 php 电子邮件的表格样式中使用一个变量,但我无法使其工作,请帮助
$message .= '<table rules="all" style="background-color: {'$pnlclr1';}" cellpadding="0">';
【问题讨论】:
-
来自php.net/manual/en/language.types.string.php: "注意:与双引号和heredoc语法不同,特殊字符的变量和转义序列在出现在单引号字符串中时不会被扩展。"
标签: php