首页技术文档Php › PHP defined() 函数

PHP defined() 函数

定义和用法

defined() 函数检查某常量是否存在。

若常量存在,则返回 true,否则返回 false。

例子:

发表评论