@param-此符号在面向对象的php中做什么 [英] @param - what does this symbol do in object oriented php

查看:71
本文介绍了@param-此符号在面向对象的php中做什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道PHP类中@ access,@ return和@param的意义是什么.我认为,如果有人可以用简单的单词进行解释,那将很容易理解.

I was wondering what is the point of @access, @return and @param in a PHP class. I figure it would be easy to understand if someone could explain in simple words.

欢呼

推荐答案

,它不会立即影响代码,但可以帮助其他程序员生成文档或了解每个代码在做什么,返回什么或做什么.它需要的参数.某些IDE会寻找这些参数.

in simple words, it does not affect the code in away, but helps other programmers to generate a documentation or understand what each code is doing, returning, or what parameters it needs.. Some IDEs look for these.

这篇关于@param-此符号在面向对象的php中做什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆