You are here

public function Parameters::get in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/Parameters.php \Zend\Stdlib\Parameters::get()

Parameters

string $name:

mixed $default optional default value:

Return value

mixed

Overrides ParametersInterface::get

File

vendor/zendframework/zend-stdlib/src/Parameters.php, line 97

Class

Parameters

Namespace

Zend\Stdlib

Code

public function get($name, $default = null) {
  if ($this
    ->offsetExists($name)) {
    return parent::offsetGet($name);
  }
  return $default;
}