分享

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

 命運之輪 2010-03-10

让你编写的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]

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多