public static function getEnvironmentVariable($name, $default = null, bool $ignoreCase = false)
    {
        if (empty($name) || !is_string($name)) {
            return null;
        }
        
        if (($value = getenv($name))) {
            return $value;
        }
        
        return ArrayUtils::getArrayValueForKeyOrDefault($_ENV, $name, $default, $ignoreCase);
    }
public static function getEnvironmentVariable($name, $default = null, bool $ignoreCase = false)
    {
        if (empty($name) || !is_string($name)) {
            return null;
        }
        
        if (($value = getenv($name))) {
            return $value;
        }
        
        return ArrayUtils::getArrayValueForKeyOrDefault($_ENV, $name, $default, $ignoreCase);
    }
public static function getEnvironmentVariable ( $ name , $ default = null , bool $ ignoreCase = false ) { if ( empty ( $ name ) || ! is_string ( $ name ) ) { return null ; } if ( ( $ value = getenv ( $ name ) ) ) { return $ value ; } return ArrayUtils :: getArrayValueForKeyOrDefault ( $ _ENV , $ name , $ default , $ ignoreCase ) ; }
Retrieve value of environment variable.

@param mixed $name
The name of the environment variable to return

@param mixed $default
The value to return if the environment variable does not exist.

@param bool $ignoreCase
[optional]
Whether to treat lowercase and uppercase letters as equivalent during the search.

@return mixed Value of the environment variable or null if it does not exist.
Retrieve value of environment variable .