Al Kepp
Al Kepp

Reputation: 5980

What does /** this */ mean in PHP files?

What does /** this */ mean in PHP files? Does it have some special meaning, or is it treated as a normal multiline comment like /* comment */?

Upvotes: 1

Views: 506

Answers (2)

BoltClock
BoltClock

Reputation: 724222

As far as I know they have no special meaning, and are treated as normal multiline comments.

If you were referring to /** these */ (with a single * for the closing delimiter), they're called PHPDoc comments. To the PHP interpreter they're still multiline comments, but The PHP interpreter tokenizes these as T_DOC_COMMENT, and to many IDEs and the phpDocumentor tool they convey their actual documentative meaning.

Upvotes: 8

adarshr
adarshr

Reputation: 62603

No special meaning as such. But it may be used by tools such as PHPDoc to generate documentation.

Upvotes: 0

Related Questions