Posts Tagged ‘Commenting PHP Code’

Comments in PHP

Commenting PHP Code:

Comments in php, A comment is the portion of a program that exists only for the human reader and stripped out before displaying the programs result. There are two commenting formats in PHP:

Single-line comments: They are generally used for short explanations or notes relevant to the local code. Here are the examples of single line comments.

<?
# This is a comment, and
# This is the second line of the comment
// This is a comment too. Each style comments only
print "An example with single line comments";
?>

Next Chapter »

Designed for Mytoptutorials.com