Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将一些变量插入到 HEREDOC 字符串中,但它给了我错误,代码是这样的:
$htmlViewAppointments .= <<<EOT <tr><td>$obj['Year']</td></tr> EOT;
利用:
$htmlViewAppointments .= <<<EOT <tr><td>{$obj['Year']}</td></tr> EOT;