给你的PHP函数和类添加标准的注释说明

让你编写的PHP函数(function)和类(class)拥有符合规范的注释,符合PHPDOC的标准,特搜集整理如下:
[coolcode lang=”PHP”]
/**
* Comment for PHP.
* @access public
* @param String $title Title Name of the Field
* @param Int $id Id of the field
* @param Array $attributes Additional attributes you want to add in format;
* @param Object $obj Obj of the field
* @param Resource $handle Handle of the field
* @param DOMDocument $dom Dom of the field
* @param String|Array $put Put of the field
* @param Mixed $type Type of the field
* @return void|bool Result
* @desc Example of the PHP function&class comment.
*/

[/coolcode]

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据