How to apply Comments in PHP [Full Tutorial]
In this tutorial, we will discuss, How to apply Comments in PHP. In computer programming, a comment is a programmer-readable explanation. They are added with the purpose of making the source code easier for humans to understand, and are generally ignored by compilers and interpreters.
How to apply Comments in PHP
Author Writer: Arshad Sultan [ Expert ]
Author Uploaded: Arshad Sultan
There are two ways to apply comments in PHP.
Single-line comments:
Start with //
and continue until the end of the line and also use #
sign for single line comments.
Multi-lines comments:
Start with /*
and end with */
. Multi line comments are used for large text descriptions of code