note 58679 added to language.basic-syntax.comments
| From: | samuli dot karevaara at lamk dot fi | Date: | Fri, 11 Nov 2005 16:30:47 +0000 |
| Subject: | note 58679 added to language.basic-syntax.comments | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98435@lists.php.net to get a copy of this message | ||
If you want to comment out large sections of code (temporarily, usually and hopefully), consider
using
<?php
if (0) {
print("This code is 'commented' out");
}
?>
instead of /* comment block */. Otherwise, as noted here, you will have parse errors if the block
that you commented out contains */ somewhere, like in regexp or in another comment.
----
Manual Page -- http://www.php.net/manual/en/language.basic-syntax.comments.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58679
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58679&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58679&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58679&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58679&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58679&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58679&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58679&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58679&report=yes
Search -- http://master.php.net/manage/user-notes.php