更新时间:2023-11-14 15:58:16
<?php
echo'< div>
< h3>< a href =#>第一< / a>< / h3>
< div> Lorem ipsum dolor sit amet。< / div>
< / div>
< div>';
?>
只需放在单引号中。
I went through this before posting:
And still couldn't make it work.
I'm trying to echo this:
<div>
<h3><a href="#">First</a></h3>
<div>Lorem ipsum dolor sit amet.</div>
</div>
<div>
But I still can't find a way to make the tags "" and '' disappear, what do I have to do?
<?php
echo '<div>
<h3><a href="#">First</a></h3>
<div>Lorem ipsum dolor sit amet.</div>
</div>
<div>';
?>
Just put it in single quotes.