While in heredocs mode I need adding a few comments I tried: // and <!-- --> and even #
but not only does it still echo the commented section but it also echoes the comments syntax (//, <!-- etc..)
I searched around but got not any clear answer.
PHP_Chimp
8:43 pm on Feb 19, 2008 (gmt 0)
I dont think that you can put comments into a heredoc, can you put them around the variable/function/statement? As a heredoc is basically a giant catch all. So your //, #, ;, or <!-- (cant think of any other characters for comments) are all going to be out put as you typed them.
Of course if you put <!-- hidden --> when this is echoed it wont show in the html, but will show in the source.
henry0
8:52 pm on Feb 19, 2008 (gmt 0)
At least I know that "I do not need to learn something else :)"