lib/ezutils/classes/ezsys.php
public static function environmentVariable( $variableName, $quiet = false )
    {
        if ( getenv($variableName) === false )
        {
            if ( !$quiet )
            {
                eZDebug::writeError( "Environment variable '$variableName' does not exist", __METHOD__ );
            }
            return null;
        }
        return getenv($variableName);
    }
public static function environmentVariable( $variableName, $quiet = false )
    {
        if ( getenv($variableName) === false )
        {
            if ( !$quiet )
            {
                eZDebug::writeError( "Environment variable '$variableName' does not exist", __METHOD__ );
            }
            return null;
        }
        return getenv($variableName);
    }
public static function environmentVariable ( $ variableName , $ quiet = false ) { if ( getenv ( $ variableName ) === false ) { if ( ! $ quiet ) { eZDebug :: writeError ( "Environment variable '$variableName' does not exist" , __METHOD__ ) ; } return null ; } return getenv ( $ variableName ) ; }
Returns an environment variable or null if it is not available

If the variable is not available, trigger an error message

@param string $variableName
@param bool $quiet
@return null|string
Returns an environment variable or null if it is not available