Doxygen:如何记录 PHP 常量?
如何记录 PHP 常量:
define('SOME_CONSTANT', 'constant value');
使用 Doxygen?
How to document PHP constants:
define('SOME_CONSTANT', 'constant value');
with Doxygen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需在常量
define()
函数调用或const
关键字上方添加一个文档块,如下所示:Just include a documentation block above the constant
define()
function call orconst
keyword like this:不确定这是否是您正在寻找的内容,但您可以使用 Define 宏,
例如:
Not sure if it's what you are looking, but you can use the Define macro
Something like: