如何链接到phpDocumentor 2中的官方PHP文档?

时间:2017-01-03 04:21:17

标签: php phpdoc

我使用phpDocumentor 2来描述几种方法。我想链接到本机函数的官方PHP文档。我可以这样写:

/**
 * @see http://php.net/manual/en/function.ucfirst.php ucfirst
 */

这些不起作用:

/**
 * @see ucfirst
 * @see \ucfirst
 */

有更好的方法吗?我正在寻找这样的东西:

/**
 * @the-official-documentation-for ucfirst
 */

1 个答案:

答案 0 :(得分:0)

您的文档中的语法存在一些问题。您应该使用@link代替@see

/**
 * @see http://php.net/manual/en/function.ucfirst.php ucfirst
 */

将文档代码更改为

/**
 * @link http://php.net/manual/en/function.ucfirst.php ucfirst
 */

我已对其进行了测试,并正在编辑phpStorm

注意:它仅适用于functionsclass个名称。你不能在评论中使用它。

相关问题