There are 3 ways to define comments in PHP. The purpose of having comments is to describe/document the code so that anyone reading the comments can further understand your intention.
Defining Single-line Comments
Defining Single-line Comments
// Single-line comments
or the other syntax would be
# Alternative way to define single line comments
Defining Multi-line Comments
/* Multi-line comments It can span into multiple lines */