开发者

PHP Commenting - Forgot some stuff! [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it c开发者_JS百科an be reopened, visit the help center. Closed 12 years ago.

maybe this is a very simple question, but forgot the answer about it because I had it once XD

So the question is about php comments, when commenting functions you use @param to explain what? Can you please clear me up?


You document what types of arguments the function takes and their names. It's used by automatic documentation generators.

See http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.param.pkg.html.


@param is used when documenting your code. It is so that automated documentation generators know what to output. You specify function parameter names and types, as well as a description.

Like this:

@param datatype $paramname description

All you need to know can be found here: http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.param.pkg.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜