Version: v0.8.1 - Beta.  We welcome contributors & feedback.

System.getEnvVar

System.getEnvVar($variableName, $default='') -> any

Description

Get an environment variable set for the local server.

If the variable does not exist, it will return $default.

System.getEnvVar('USER')
//= 'www-data'

System.getEnvVar('NON_EXISTENT', 'myDefault')
//= 'myDefault'

See Also 

See Also