PHPDoc

suggest change

Syntax

Remarks

“PHPDoc” is a section of documentation which provides information on aspects of a “Structural Element” — PSR-5

PHPDoc annotations are comments that provide metadata about all types of structures in PHP. Many popular IDEs are configured by default to utilize PHPDoc annotations to provide code insights and identify possible problems before they arise.

PHPDoc annotations are not part of the PHP core. PSR-5 stayed a draft and was abandoned. The later PHP-FIG proposal is PSR-19.

PHPDoc annotations live in DocBlocks, multiline comments that open with /**:

/**
 *
 */

The full PHP-FIG standards draft is available on GitHub.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents