DotenvVariables::setInternal( string $name, string|null $value = null )

Set an environment variable.


Parameters

$name

(string) (Required)

$value

(string|null) (Optional)

Default value: null


Return

(void)


Source

File: vendor/vlucas/phpdotenv/src/Environment/DotenvVariables.php

    protected function setInternal($name, $value = null)
    {
        foreach ($this->adapters as $adapter) {
            $adapter->set($name, $value);
        }
    }