note 32790 added to language.basic-syntax.comments

From: Date: Fri, 06 Jun 2003 21:02:40 +0000
Subject: note 32790 added to language.basic-syntax.comments
Groups: php.notes 
Request: Send a blank email to php-notes+get-49915@lists.php.net to get a copy of this message
commenting code out is great for debugging. for example if you have lots of code, rather than "deleting code" or copy and pasting to a "note pad" only to put it back. commenting comes in handy. example: <?php /*echo "hello world"; echo "<br>";*/ echo "hello people"; ?> Results to Out puts: hello people while using // only comments out the line that you put it on Example: <?php //echo "hello world"; echo "<br>"; echo "hello people"; ?> Results to Out puts: hello people So basicly you can use /* */ or // to comment out more then just comment pertaining to scripts, it is a great tool for unactivating code when testing and debugging. Hope this helps some people in a great way. ---- Manual Page -- http://www.php.net/manual/en/language.basic-syntax.comments.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32790 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32790&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32790&report=yes

« previous php.notes (#49915) next »