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
Post a Comment