note 60960 deleted from language.basic-syntax.comments by peehaa
| From: | peehaa@php.net | Date: | Sun, 06 Jan 2019 14:37:42 +0000 |
| Subject: | note 60960 deleted from language.basic-syntax.comments by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-210012@lists.php.net to get a copy of this message | ||
Note Submitter:
----
M Spreij wrote, 08-May-2005 08:15...
A nice way to toggle the commenting of blocks of code can be done by mixing the two comment styles:
...
This works because a /* .. */ overrides //.
The final sentence should be the other way round, i.e.
This works because a // overrides /* .. */.
(If it didn't the /* .. */ would comment out the code regardless of whether an additional
'/' is prefixed to the first line).