PHP Comments
Writing comments in PHP.
PHP Comments
A comment in PHP code is a line that is not executed as a part of the program. Its only purpose is to be read by someone who is looking at the code.
PHP supports several ways of commenting:
Syntax for Single-line Comments
// This is a single-line comment
# This is also a single-line comment
Syntax for Multi-line Comments
/*
This is a multiple-lines comment block
that spans over multiple
lines
*/