Share on Google+Share on Google+
PHP Comments
Posted on: March 6, 2010 at 12:00 AM
In this PHP tutorial we will study about different kinds of comments supported by PHP, the differences among all those comments. Examples will exemplify each type.

PHP Comments:

Most of the popular languages (C, C++, Unix) uses same kind of comments, single line (//) and more than one line comments (/* */) and along with these Unix like comment '#' is also supported by PHP.

Single line comments ( // ) is used to make a single line or a block inactive. Similarly the task of # is the same.

Double line or multiple line comments are used when large block is to be commented.



//This is a single comment

#This is Unix style comment


* This

* is

* Multiple

* line

* comment




Note: Since the above example has only comments, no output will be generated



Related Tags for PHP Comments:

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: March 6, 2010

Recommend the tutorial

Advertisements Advertisements