A PHP comment is a short passage of text that is not executed by the program. There is no other purpose for it except to be read by someone looking at the code. The purpose of comments is to let others get an understanding of the code.
How to write comments in PHP
- The Syntax "// text" and "/* text */" are usually used to explain the functionality of a PHP block of code
- Single Line Comments
- Comments in PHP begin with //
- Multi-line Comments
- Related FAQ