php 多条数据更新数据类型,PHPdoc @param中的两个或多个数据类型
生活随笔
收集整理的这篇文章主要介绍了
php 多条数据更新数据类型,PHPdoc @param中的两个或多个数据类型
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
好的,我有这个phpdoc上面的我的类方法
/**
* this a function that translates the text
* @param string|boolean $lang if string the string given in the parameter will be the language code that will represent the language desired, if true, this will translate based on the website's current language, if false will not translate.
*/
现在我的问题是,我如何定义可以接受字符串和布尔值的$lang的数据类型.
在其他文档中,我看到混合,但它没有正确地反映在我的Eclipse IDE与PDT.
我的问题是如何显示一个@param可以接受两种或更多类型的数据类型的标准方法是什么.
注意:我给出的phpdoc是我现在正在工作的应用程序的现有文档.那么我被分配好记录一切.
总结
以上是生活随笔为你收集整理的php 多条数据更新数据类型,PHPdoc @param中的两个或多个数据类型的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: unix odbc php 连接sqls
- 下一篇: php hasattribute,PHP