Function __global->getenv
Definitions
sources_custom/phpstub.php
- Gets the value of an environment variable.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $string | string | No | No | required parameter | N/A | N/A | The environment name to get (e.g. PATH). |
Returns
- The value (false: error)
- Type: ~string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Gets the value of an environment variable.
*
* @param string $string The environment name to get (e.g. PATH).
* @return ~string The value (false: error)
*/
function getenv(string $string)
* Gets the value of an environment variable.
*
* @param string $string The environment name to get (e.g. PATH).
* @return ~string The value (false: error)
*/
function getenv(string $string)

