➤ 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.
• Let others understand your code.
• Remind yourself of what you did.
PHP supports several ways of commenting:
// This is a single-line comment
# This is also a single-line comment
/*
This is a multiple-lines comment block
that spans over multiple
lines
*/
// You can also use comments to leave out parts of a code line
$a = 2 /* - 1 */ + 4;