News for hackers. Stuff that matters.
Re:Code that is valid in both PHP and Java, and produces the... by ivanca on Thursday September 01, 2016 @01:35AM (#12403293)
Actually that trick creates some residual garbage (the slash and the asterisk would be printed in PHP)

A way to avoid this is to use the HTML comment notation, JavaScript just ignores it (until end of line), so just:

    <!-- <?php echo "-->";

There are no comments on this comment yet.