【发布时间】:2017-01-03 04:21:17
【问题描述】:
我使用 phpDocumentor 2 来描述一些方法。我想链接到原生函数的官方 PHP 文档。我可以这样写:
/**
* @see http://php.net/manual/en/function.ucfirst.php ucfirst
*/
这些不起作用:
/**
* @see ucfirst
* @see \ucfirst
*/
有没有更好的方法?我正在寻找这样的东西:
/**
* @the-official-documentation-for ucfirst
*/
【问题讨论】:
-
我没听明白?你到底想完成什么?
-
是的,你可以这样写。
-
@Anant 我更新了问题。
-
哦,所以您想在每个代码或函数上方设置文档链接?我对吗?如果是,我认为第一个是正确的
-
@Michas 是的,它应该可以工作。我刚刚测试过,没有在
Sublime text上工作,但在phpStorm上工作。您是真的,官方文档没有区别。