← All docs

putenv()

Sets an environment variable.

putenv()

function putenv(string $assignment): bool

Sets an environment variable.

Parameters:

  • $assignment (string)

Returns: bool

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how putenv is implemented in the compiler, see the internals page.