php在使用&lt;&lt; <eod

时间:2016-09-22 08:06:24

标签: php

=“”

时替换html我知道我可以在html中连接php变量但是我选择使用&lt;&lt; ;

<?
$template = <<<EOD
<table></table>
//bunch of stuff html here
<div id="placeholder"></div>
EOD;
?>

现在我想用我的自定义消息替换占位符,我在php中怎么做?在我的$ custom_msg进来之前,$ template被渲染了。

0 个答案:

没有答案
相关问题