且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 PHP、HTML 标签中回显

更新时间:2023-11-14 16:11:16

只需将其放在单引号中即可.

I went through this before posting:

How can I echo HTML in PHP?

And I 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.

上一篇 : :在 iphone 的 UIWebView 中显示自定义菜单下一篇 : C ++ 20的“ char8_t”与我们以前的“ char”相同吗?

相关阅读

推荐文章