You are here

public function Client::getServerParameter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Client.php \Symfony\Component\BrowserKit\Client::getServerParameter()

Gets single server parameter for specified key.

Parameters

string $key A key of the parameter to get:

string $default A default value when key is undefined:

Return value

string A value of the parameter

File

vendor/symfony/browser-kit/Client.php, line 130

Class

Client
Client simulates a browser.

Namespace

Symfony\Component\BrowserKit

Code

public function getServerParameter($key, $default = '') {
  return isset($this->server[$key]) ? $this->server[$key] : $default;
}