Well, I canβt add comments inside the heredoc block in the foo.php file:
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;
Does the form work, of course (btw the form code above is greatly truncated for the sake of my question here).
But the dang comment ( okay this comment was..blah blah blah ) is also displayed in the browser. It appears in the browser as described above:
// okay this comment was intended to explain the code below but it // is showing up on the web page HTML sent to the browser
Rearrangements in the demarcation of the comments I tried:
and....
<-- // --> //
FAIL in both cases so that I can comment inside the heredoc .
So how can I comment on my code in my heredoc s?
wantTheBest
source share