PHP function putenv()

Availability in PHP 4.0

Sets the value of an environment variable

Parameters

Parameter Data type Default value Note
$setting string not The setting, like "FOO=BAR"

Return values

bool

Returns true on success, otherwise false on failure.

Other resources

Official documentation for the putenv function

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.