我从PHP获得有关以下代码的诊断消息:
PHP Notice: Use of undefined constant default_output - assumed 'default_output'
protected static $instance = NULL;
public static function instance() {
NULL === self::$instance and self::$instance = new self;
return self::$instance;
}
此消息的含义是什么?如何重新调整代码以终止消息?
答案 0 :(得分:0)
您的代码default_output
中只有一处。它可能应该是$default_output