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