好吧,我似乎无法在我的foo.PHP文件中的heredoc块中添加注释:
- 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 intended to explain the code below but it
- // is showing up on the web page HTML sent to the browser
关于评论划分的排列我尝试过:
- // <--
- // -->
和….
- <-- //
- --> //
两种情况都失败,允许我在heredoc内发表评论.