← All built-ins / putenv()
putenv()
putenv(string $s): bool
Parameters
| Name | Type | Description |
|---|---|---|
| $assignment | string | "NAME=value" |
Return value
true when set; visible to getenv() and child processes.
Example
putenv("HOLY_MODE=on");
echo getenv("HOLY_MODE");on