PHP 8.5.0 Alpha 1 available for testing

Voting

: eight minus one?
(Example: nine)

The Note You're Voting On

J Lee
19 years ago
MSpreij (8-May-2005) says /* .. */ overrides //
Anonymous (26-Jan-2006) says // overrides /* .. */

Actually, both are correct. Once a comment is opened, *everything* is ignored until the end of the comment (or the end of the php block) is reached.

Thus, if a comment is opened with:
// then /* and */ are "overridden" until after end-of-line
/* then // is "overridden" until after */

<< Back to user notes page

To Top