/** * 重置配置参数 */ public static function reset($range = '') { $range = $range ?: self::$range; true === $range ? self::$config = [] : (self::$config[$range] = []); }
/** * 重置配置参数 */ public static function reset($range = '') { $range = $range ?: self::$range; if (true === $range) { self::$config = []; } else { self::$config[$range] = []; } }
public static function reset($name, $value = null, $range = '') { self::$config = []; }