Comments in PHP

The comments in PHP are on similar fashions on C and many other programing languages. A single line comment starts with // and multiple line comments are between /* and */

Let us try and examplle
//echo "Hello World 1";
echo "Hello World 2";
echo "Hello World 3";

The file simply gives out "Hello World 2" when the client accesses the php file.

Use the comments profusely. It does not hurt. Very often it will help you understand your own code if you need to make some changes later on.

In the next few chapters we will develop some common programming constructs for PHP.