How to use comments in PHP Code
Comments are basically the string or known language used for our information when we modify our PHP code. Comments do not execute when the code runs.
There are two types of comments used in PHP:-
1. Single Line Comments: To comment on a single line "//" or "#"
2. Multiline Comments: To comment Multiple lines or paragraph " /* paragraph */ "
<php $a="Amit"; // Single Line comment $b="Kumar"; # Single Line comment $c=$a." ".$b; /* Now in the c variable we concatenate both the two stings and this is a multiline comment*/ echo $c; ?>