Home > PHP > Function > Apache > apache_getenv()

apache_getenv()

apache_getenv - Get an Apache subprocess_env variable

Syntax

string apache_getenv (string $variable, bool $walk_to_top)

Arguments

  • variable - The Apache environment variable
  • walk_to_top - Whether to get the top-level variable available to all Apache layers.

Description

Get an Apache environment variable as specified by variable.

Version

PHP 4.3.0, 5

Return value

The value of the Apache environment variable on success, or FALSE on failure