How to add comments in PHP?
In PHP comments are two types.
- Single line comments
- Multi line comments
1. Single line comments: It is used comments a single line of code. It disables a line of PHP code. You have to add // or # before the system.
2. Multi line comments: It is used to comment large blocks of code or writing multiple line comments. You have to add /* before and */ after the system.