Well I can't seem to add comments inside a heredoc
block in my 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, sure (btw the form code above is highly truncated for the sake of my question here).
But the dang comment (okay this comment was..blah blah blah
)
appears in the browser too. It shows up in the
browser just as written 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
Permutations on the commenting demarcation I've tried:
// <--
// -->
and....
<-- //
--> //
FAIL in both cases to allow me to comment inside heredoc
.
So how the heck can I comment up my code within my heredoc
s?