PHP TutorialLesson 5Free preview
PHP Comments
This lesson is part of PHP · All levels
Summary
Comment is a note in code that is read by humans but ignored by PHP interpreters. This lesson explains how to write one-line comments with // or #, as well as multi-line comments with /*... */. Good comments help the team understand the purpose of the code, not just repeat the line content.
Key points
- One line comment is written with // or #
- Multi-line commentary wrapped up
- Comments are not executed and do not affect the outcome of the program
- Comments should explain the reasons and purpose of the code
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.