Environment::getGlobally()
Gets a value from the global server environment array of the current app instance; falls back to $_SERVER if no app instance is running
Environment::getGlobally(string|false|null $key = null, mixed $default = null): mixed
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $key | string|false|null |
null |
The key to look for. Pass false or nullto return the entire server array. |
| $default | mixed |
null |
Optional default value, which should be returned if no element has been found |
Return type
mixed