如何在 PHP 中的 PHPDocumentor 块中粘贴特殊符号,如“*/”?

How to paste special symbols in PHPDocumentor block in PHP like "*/"?

如何将相似的符号粘贴到 PHPDoc 块中?

例如:

/**
 * Please use these symbol "@" with symbols "*/" as well.
 */

无法在 documentation 中找到它。

phpdoc.org手册中我们可以读到:

if you need an actual "@" in your DocBlock's description parts, you should be careful to either ensure it is not the first character on a line, or else escape it ("\@")

还有 新 1.2.0rc1:

If you need to use the closing comment "*/" in a DocBlock, use the special escape sequence "{@*}."

/**
 * <code>
 * \@require 'config.php'
 * Example comment {@*}
 * </code>
 */

将呈现为:

/**
 * <code>
 * @require 'config.php'
 * Example comment */
 * </code>
 */