相关疑难解决方法(0)

PHP:定义它时的未定义常量

我在PHP中收到以下错误:

注意:使用未定义的常量CONSTANT

在我定义它的确切行上:

define(CONSTANT, true);
Run Code Online (Sandbox Code Playgroud)

我究竟做错了什么?我定义了它,为什么它会说"Undefined constant"?

php constants undefined

-3
推荐指数
2
解决办法
519
查看次数

标签 统计

constants ×1

php ×1

undefined ×1