note 46282 added to language.basic-syntax.comments
| From: | deelight at f-m dot fm | Date: | Tue, 05 Oct 2004 17:22:02 +0000 |
| Subject: | note 46282 added to language.basic-syntax.comments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-78032@lists.php.net to get a copy of this message | ||
A fast way to comment or uncomment a block of code is to use /* and //*/
<?php
/*
for($x=0; $x<10; $x++){
$y = $x * 2;
}
//*/
// to uncomment the block, simply add a / in fron of the /*
//*
for($x=0; $x<10; $x++){
$y = $x * 2;
}
//*/
?>
----
Manual Page -- http://www.php.net/manual/en/language.basic-syntax.comments.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46282
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46282&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46282&report=yes
Search -- http://master.php.net/manage/user-notes.php