Welcome to Our Free Tutorial!

PHP-Comments!

Previous Home Next

In the programming world “Comments” are important role it is a small pieces of code. The main purpose is to save as note. The server ignores the comments. Browsers do not show the comments.

Two types of comments:
  1. Single Line : In single line comment , use two forward slashes (//)
  2. Multiple Lines : In Multiple Lines comment, use the forward slash and asterisk (/*) then close it with asterisk and forward slash(*/).

Example

<?php

// Single line comment

/*
This is Multiple
Line Commnets in 
Php.
*/

?>
Previous Home Next