PHP Tutorial Tutorials - PHP Comments

PHP Comments

A comment is the portion of a program that exists only for making code more readable and is ignored by the PHP parsing engine.

Single-line comments

Single-line comment begin with two slashes (//) or a hash symbol (#)

<?php  
// this is a single line comment (C++ style)
# this is also a single comment (Unix Shell style)
echo "PHP single line comments Example";  
?>

Multi-lines comments

The multiple line PHP comments are enclosed within /* */;

<?php  
    /* This is a multiline comment
       Lautturi.com
   */
echo "PHP Multi lines comments Example";  
?>
Date:2019-09-30 18:08:05 From:www.Lautturi.com author:Lautturi