Results 1 to 4 of 4
  1. #1

    Question Boneheaded again... commenting code?

    Is there a way to do a block comment-out in PHP?
    i.e.

    /*
    script line;
    script line;
    script line;
    */

    or am I stuck with:

    //script line;
    //script line;
    //script line;

    ?

    Thnx,

    - D

  2. #2
    Join Date
    Oct 2002
    Location
    Houston, Tx
    Posts
    12
    http://php.telepac.pt/manual/en/lang...x.comments.php

    <?php
    echo "This is a test"; // This is a one-line c++ style comment
    /* This is a multi line comment
    yet another line of comment */
    echo "This is yet another test";
    echo "One Final Test"; # This is shell-style style comment
    ?>

  3. #3


    Oh, I thought I tried
    /* this method
    already. */

    Well, I definitely feel stupid for that. Thanks though for correcting my misconception.

    - D
    TriniTronic - Advanced Web Development - http://trinitronic.com

    WickiDevel.com - The Web Developer's Wiki Resource Guide - http://wickidevel.com

  4. #4
    Join Date
    Aug 2002
    Location
    Long Island
    Posts
    427
    it's likes Ceeeeee.
    John Trovato
    In Office Networks, LLC
    Programmer, Cisco Network Engineer, Roofer, Biochemist, and Conductor.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •