Press "Enter" to skip to content

phpcomment

PHP Comment

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


Inline Comment

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


Block Comment

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

Example for PHP Comment

<?php
//This is Inline Comment
echo “Welcome to w3htmlschool.com”
/*This is Bloack comment
My First Progam
*/
#Author
#Creation Date
#Version
?>