Retrieve a member of the $_ENV superglobal

If no $key is passed, returns the entire $_ENV array.

@param string $key
@param mixed $default Default value to use if key not found
@return mixed Returns null if key does not exist
774042
public function getEnv($key = null, $default = null) {
        if (null === $key) {
            return $this->ENV;
        }

        return (isset($this->ENV[$key])) ? $this->ENV[$key] : $default;
    }
92935
public static function env(string $key, $default = null)
    {
        self::initialize();
        $value = getenv($key);
        if ($value === false) {
            return $default;
        }
        return $value;
    }
1338472
public function get($key, $default = null)
    {
        if (empty($key)) {
            return $default;
        }

        $parts = explode(".", $key);
        $file = array_shift($parts);

        if (!isset($this->registry[$file])) {
            $this->registry[$file] = $this->discover($file);
        }
        $res = $this->parse($key);

        return is_null($res) ? $default : $res;
    }
1005232
public function get($key = null, $default = null)
	{
		if ( is_null($key) )
		{
			return $this->get;
		}

		return Arr::get($this->get, $key, $default);
	}
1101921
public function get(string $key, $default = null)
	{
		[$file, $path] = $this->parseKey($key);

		if(!isset($this->configuration[$file]))
		{
			$this->load($file);
		}

		return $path === null ? $this->configuration[$file] : Arr::get($this->configuration[$file], $path, $default);
	}
561924
public static function get($key, $default = "default") {
		if(self::$config == array())
			self::load();

		$env = Kernel::getEnvironment();
		$position = self::$config[$env];
		$token = strtok($key, '.');
		while($token !== false) {
			$nextToken = strtok('.');
			if(!isset($position[$token]))
				return $default;

			if($nextToken === false)
				return $position[$token];

			$position = &$position[$token];
			$token = $nextToken;
		}

		return $default;
	}
234565
public function getEnv($key = null)
    {
        if ($key === null) {
            return $this->env;
        } else {
            return (isset($this->env[$key])) ? $this->env[$key] : null;
        }
    }
403216
public function getNoCache($key, $default = null)
    {
        if (is_array($key)) {
            $result = $this->select('key', 'value')
                ->whereIn('key', $key)
                ->pluck('value', 'key')
                ->toArray();

            return empty($result) ? $default : $result;
        }

        $result = $this->select('value')->where('key', $key)->first();

        return $result === null ? $default : $result->value;
    }
822374
public function get($key, $default = null)
    {
        if (\array_key_exists($key, $this->cacheEnv)) {
            return $this->cacheEnv[$key];
        }

        $envKey = $this->convertEnvKey($key);
        $envValue = getenv($envKey);

        if (false !== $envValue) {
            return $this->cacheEnv[$key] = $this->convertEnvValue($envValue, $envKey);
        }

        $defaultValue = $this->getDefaultValue($key, $default);

        return \array_key_exists($key, $this->config)
            ? $this->getByManager($key, $this->config[$key], $defaultValue)
            : $defaultValue;
    }
635198
public function get( $key, $default = null ) 
	{
		if ( !isset( $this->GET[$key] ) ) 
		{
			return $default;
		}
		return $this->GET[$key];
	}
508704
private function _getConfig(string $key, $default = null)
    {
        if (isset($this->_config[$key])) {
            return $this->_config[$key];
        }

        return $default;
    }
476090
public function get(string $key, $default = null)
    {
        $k = $this->keyConvert($key);
        $v = getenv($k);
        return $v !== false ? $v : $default;
    }
658329
protected function get($key, $default = null)
    {
        $val = dot_access($this->configuration, $key);
        return $val !== null ? $val : $default;
    }
841737
public function get($key, $default = NULL) {
		$keyArr = explode('.', $key);
		$fileName = $keyArr[0];
		
		if (!isset($this->map[$fileName])) {
			$this->loadConfig($fileName);
		}
		
		$rs = NULL;
		$preRs = $this->map;
		foreach ($keyArr as $subKey) {
			if (!isset($preRs[$subKey])) {
				$rs = NULL;
				break;
			}
			$rs = $preRs[$subKey];
			$preRs = $rs;
		}
		
		return $rs !== NULL ? $rs : $default;
	}
1035496
public function get($key = null, $default = null)
    {
        if (!empty($key)) {
            return ArrayFunc::get($this->config, $key, $default);
        }

        return $this->config;
    }
1340099
public function get($key, $default = null)
    {
        $value = $this->{$this->adapter}->get($this->keyPrefix . $key);
        return $value ? $value : $default;
    }
702346
public function get(string $key, $default = null)
    {
        $this->autoload();

        if (!\array_key_exists($key, $this->env)) {
            return $default;
        }

        return $this->env[$key];
    }