ApacheAdapter::set( string $name, string|null $value = null )
Set an environment variable.
Description
Only if an existing apache variable exists do we overwrite it.
Parameters
- $name
-
(Required)
- $value
-
(Optional)
Default value: null
Return
(void)
Source
File: vendor/vlucas/phpdotenv/src/Environment/Adapter/ApacheAdapter.php
public function set($name, $value = null)
{
if (apache_getenv($name) !== false) {
apache_setenv($name, (string) $value);
}
}