Server
in package

This is the Server management class.

Server variables will be managed on that class.

Tags
see
Server::get()
see
Server::getAll()
see
Server::exist()

Table of Contents

exist() Checks if the SERVER variable identified by the given key exists.  : bool
get() Returns the data stored on the given SERVER key.  : string|null
getAll() Returns all the stored SERVER variables.  : array<string|int, mixed>

Methods

exist()

Checks if the SERVER variable identified by the given key exists.

public static exist(string $key) : bool
Parameters
$key : string

Name of the SERVER key you want to check.

Return values
bool

get()

Returns the data stored on the given SERVER key.

public static get(string $key) : string|null
Parameters
$key : string

Name of the SERVER you want to get.

Return values
string|null

getAll()

Returns all the stored SERVER variables.

public static getAll() : array<string|int, mixed>
Return values
array<string|int, mixed>

Search results