← All docs

getenv()

Gets the value of an environment variable.

getenv()

function getenv(string $name): mixed

Gets the value of an environment variable.

Parameters:

  • $name (string)

Returns: mixed

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

Internals

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