Press "Enter" to skip to content


PHP Comment

PHP comment is the line or group of lines in PHP script that will not executed .There are several way to write comment.

One line PHP Comment

PHP supports this type of commenting by using two consecutive forward slashes(//) preceding any comment added.

Block Comment or C Style Comment

block comments can start with a forward slash followed by an asterisk (/*), then close with an asterisk followed by a forward slash (*/)..

What is the purpose of comment in PHP Script ?

In computer programming, a remark is a programmer-readable clarification or annotation in the supply code of a computer program. They are delivered with the reason of making the supply code simpler for people to understand, and are typically omitted by using compilers and interpreters.

PHP Comment Example

//This is One line Comment
echo “Welcome to”
/*This is Bloack comment
My First Progam
#Creation Date