好吧,我似乎无法heredoc
在文件的块内添加注释foo.php
:
echo <<<_HEREDOC_FOO
// okay this comment was intended to explain the code below but it
// is showing up on the web page HTML sent to the browser
<form action="foo.php" method="post">
<input type="submit" value="DELETE RECORD" /></form>
_HEREDOC_FOO;
表格是否有效(顺便说一句,为了我的问题,上面的表格代码被高度截断)。
okay this comment was..blah blah blah
但是浏览器中也出现了 dang 注释 ( )。它显示在浏览器中,就像上面写的一样:
// okay this comment was intended to explain the code below but it
// is showing up on the web page HTML sent to the browser
我尝试过的评论分界的排列:
// <--
// -->
和....
<-- //
--> //
在这两种情况下都不允许我在里面发表评论heredoc
。
那么我怎么能在我heredoc
的 s 中评论我的代码呢?