Commenting and Uncommenting Lines of Code

It is possible to add comments to your PHP code. PHP supports both single-line and multi-line comment blocks.

There are two types of comments:

Example

<?php

   // This is a single-line comment

   /*    This is a

          multi-line

          comment         */

?>

Blank lines within the PHP tags are ignored by the parser. Everything outside the tags is also ignored by the parser, and returned "as-is". Only code between the tags is read and executed.