PHP - Comments inside <?php echo <<<EOF -


how comment out if use syntax?:

<?php             echo <<<eof      //comment or <!-- comment --> or else?                  eof;             ?> 

i'm little bit confused. thank you

you can't. point of heredoc inside part of string. exists avoid having php meta characters (including comments) treated such. put inside appear in string (and thus, in instance, echoed wherever output directed).

if output html, include html comment in it. still appear in output, parsing html treat comment. likewise, if content js can use js comment, , on.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -