src/Core/Environment.php
public static function getEnv($name)
    {
        switch (true) {
            case  is_array(static::$env) && array_key_exists($name, static::$env):
                return static::$env[$name];
            case  is_array($_ENV) && array_key_exists($name, $_ENV):
                return $_ENV[$name];
            case  is_array($_SERVER) && array_key_exists($name, $_SERVER):
                return $_SERVER[$name];
            default:
                return getenv($name);
        }
    }
public static function getEnv($name)
    {
        switch (true) {
            case  is_array(static::$env) && array_key_exists($name, static::$env):
                return static::$env[$name];
            case  is_array($_ENV) && array_key_exists($name, $_ENV):
                return $_ENV[$name];
            case  is_array($_SERVER) && array_key_exists($name, $_SERVER):
                return $_SERVER[$name];
            default:
                return getenv($name);
        }
    }
public static function getEnv ( $ name ) { switch ( true ) { case is_array ( static :: $ env ) && array_key_exists ( $ name , static :: $ env ) : return static :: $ env [ $ name ] ; case is_array ( $ _ENV ) && array_key_exists ( $ name , $ _ENV ) : return $ _ENV [ $ name ] ; case is_array ( $ _SERVER ) && array_key_exists ( $ name , $ _SERVER ) : return $ _SERVER [ $ name ] ; default : return getenv ( $ name ) ; } }
Get value of environment variable

@param string $name
@return mixed Value of the environment variable, or false if not set
Get value of environment variable