PHP代码生成PHP通知

时间:2014-07-12 20:49:29

标签: php

我从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;
}

此消息的含义是什么?如何重新调整代码以终止消息?

1 个答案:

答案 0 :(得分:0)

您的代码default_output中只有一处。它可能应该是$default_output