• home
  • forum
  • my
  • kt
  • download
  • Commenting Your PHP Code

    Author: 2008-08-22 08:37:06 From:

    Comments are used in PHP to allow you to write notes to yourself during the development process. Such comments may define the purpose of a code segment or to comment blocks of code while testing scripts.

    Comments are ignored by the PHP parser. PHP comments can be defined in one of the following ways:

    Examples:
    // - simple PHP comment.
    # - alternative simple PHP comment.
    /*...*/ - multi-line comment blocks.



    Example:
    CODE
    <?php

    // This is a simple PHP comment
    #  This is a second simple PHP comment

    /* This is a PHP multi-line
    comment block. It can span as
    many lines as necessary */

    ?>

    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      Ad Management (4)
      Calendars (3)
      Chat Systems (7)
      Content Management (6)
      Cookies and Sessions (8)
      Counters (8)
      Database Related (8)
      Date and Time (9)
      Development (6)
      Discussion Boards (7)
      E Commerce (6)
      Email Systems (9)
      Error Handling (5)
      File Manipulation (10)
      Flash and PHP (4)
      Form Processing (7)
      Guestbooks (8)
      Image Manipulation (3)
      Installing PHP (5)
      Introduction to PHP (9)
      Link Indexing (6)
      Mailing List Management (8)
      Miscellaneous (38)
      Networking (8)
      News Publishing (9)
      OOP (24)
      PEAR (6)
      PHP vs Other Languages (2)
      Polls and Voting (6)
      Postcards (1)
      Randomizing (14)
      Redirection (11)
      Searching (9)
      Security (29)
      Site Navigation (16)
      User Authentication (14)
      WAP and WML (7)
      Web Fetching (8)
      Web Traffic Analysis (15)
      XML and PHP (16)

    New

    Hot