Use single line comments in PHP

Description

The following code shows how to use single line comments.

Example


<?php//w  w w  .  j  a v a  2 s .co m
    // Title: My first PHP script
    // Author: Jason Gilmore
    echo "This is a PHP program.";
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Language Basic »




PHP Introduction
PHP Operators
PHP Statements
Variable
PHP Function Create
Exception
PHP Class Definition