来自AI助手的总结
PHP的constant()函数用于返回常量的值,仅适用于类常量。
PHP constant() 函数
定义和用法
constant() 函数返回常量的值。
语法
constant(constant)
| 参数 | 描述 |
|---|---|
| constant | 必需。规定要检查的常量的名称。 |
提示和注释
注释:该函数仅适用于 class 常量。
例子
输出:
Hello world!
© 版权声明
THE END








暂无评论内容