PHP Comments
In PHP code, a comment is a line that isn't executed as part of the program. Its is intended just for anybody who looks at the code to read it.
Comments can be used to
Make your code understandable to others. Recall what you did - Most programmers have had the experience of returning to their own work a year or two later and having to re-learn what they done. Comments might serve as a reminder of your thoughts while you created the code.
PHP supports several ways of commenting.
Related Links
Example 1 :- Syntax for single-line comments:-
Example 2 :- Syntax for multiple-line comments:-
Example 3 :- Using comments to leave out parts of the code:-
Output :-
10
Related Links
You can also search for these topics, comments in php, types of comments in php, php comments example, use of php comments, php comment line, php comment system, php comment standards, Single line comment, multiple line comment.