The characters "# @ +" in PHP comments

I found some special characters "# @ +" and "# @ -" in the comments / documentation in ZF1. Example:

/**#@+
 * @access protected
 */

( https://github.com/zendframework/zf1/blob/master/library/Zend/Mail.php#L54 )

I have seen this before in other repositories.

What does it mean?

+4
source share
1 answer

These are PHP DocBlock template declarations. The file must also have an end tag /**#@-*/. It allows you to specify the same documentation for several properties, methods, or constants.

: http://codingexplained.com/coding/php/how-to-use-docblock-templates-in-phpdoc

+5

Source: https://habr.com/ru/post/1653994/


All Articles