Web Hosting Talk







View Full Version : Boneheaded again... commenting code?


dTuesday
11-16-2002, 03:49 AM
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

Novicane
11-16-2002, 03:52 AM
http://php.telepac.pt/manual/en/language.basic-syntax.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
?>

dTuesday
11-16-2002, 04:20 AM
:blush:

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

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

- D

jtrovato
11-16-2002, 04:39 AM
it's likes Ceeeeee.