PHP Environment

ReadInterface

Describes Read interface.

Table of Contents

Methods

getBoolean()  : bool
Retrieve boolean value of environment variable by the given case-insensitive name.
getEnvironments()  : array<string, string>
Retrieve all of environment variables.
getFloat()  : float
Retrieve float value of environment variable by the given case-insensitive name.
getInteger()  : int
Retrieve integer value of environment variable by the given case-insensitive name.
getString()  : string
Retrieve string value of environment variable by the given case-insensitive name.
hasEnvironment()  : bool
Checks if environment variable exists by the given case-insensitive name.

Methods

getBoolean()

Retrieve boolean value of environment variable by the given case-insensitive name.

public getBoolean(string $Name[, bool $Default = false ]) : bool
Parameters
$Name : string

The variable name.

$Default : bool = false

The default value.

Return values
bool

getEnvironments()

Retrieve all of environment variables.

public getEnvironments() : array<string, string>
Return values
array<string, string>

getFloat()

Retrieve float value of environment variable by the given case-insensitive name.

public getFloat(string $Name[, float $Default = 0 ]) : float
Parameters
$Name : string

The variable name.

$Default : float = 0

The default value.

Return values
float

getInteger()

Retrieve integer value of environment variable by the given case-insensitive name.

public getInteger(string $Name[, int $Default = 0 ]) : int
Parameters
$Name : string

The variable name.

$Default : int = 0

The default value.

Return values
int

getString()

Retrieve string value of environment variable by the given case-insensitive name.

public getString(string $Name[, string $Default = "" ]) : string
Parameters
$Name : string

The variable name.

$Default : string = ""

The default value.

Return values
string

hasEnvironment()

Checks if environment variable exists by the given case-insensitive name.

public hasEnvironment(string $Name) : bool
Parameters
$Name : string

The variable name.

Return values
bool

        
On this page

Search results