putenv

PHP 4, PHP 5, PHP 7, PHP 8
putenv - Sets the value of an environment variable
Manual
Code Examples

Example #1 Setting an environment variable

PHP Version: