【发布时间】:2021-03-17 23:01:51
【问题描述】:
如何在源代码部分将 $topic_image 的内容赋给这样的变量?
问题出在这里:--> src="image/<?php echo $topi_image?>" .
$display_content=<<<END_OF_TEXT
<div>
<img src="image/<?php echo $topic_image ?>" style="width:200px;height:150px;">
<p style="float:left">$topic_pris</p>
<p style="float:left">$topic_title</p>
<p style="float:left">$topic_name</p>
</div>
END_OF_TEXT;
【问题讨论】:
标签: php html css string heredoc