Version: v0.6.1 - Beta.  We welcome contributors & feedback.  THanks!

System.envVar

System.envVar($variableName, $default = '')

Description

Get an environment variable.

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

System.envVar('USER');
//= 'www-data'

System.envVar('NON_EXISTENT', 'myDefault');
//= 'myDefault'

See Also