Comment is a line of text which is not read and executed as part of the program.
It is used to add notes of the source code or stop some block of code from execution.
When writing a long script it is very helpful by adding comments on each step about what the code does.
If some other using your code or updating then it is easier for the user to understand the working of code and it saves time.
In PHP there are two types of comments –
- Single line