PHP syntax: comments
PHP allows three forms of comments all of which may seem familiar to programmers of other languages.
/* comment block
everything within the slash-asterisk
pairs is commented */
Two inline comment styles cause everything following to be ignored:
$var++; // increment var
$var=2; # another comment
Comments don’t work when they are in quotes (otherwise we couldn’t use a # in the output of an echo statement).





