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.

While PHPDoc annotations are not part of the PHP core, they currently hold draft status with PHP-FIG as PSR-5.

All PHPDoc annotations are contained within DocBlocks that are demonstrated by a multi-line with two asterisks:

/**
 *
 */

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