Convenience function to retrieve a single header.

@param string $name
The name of the header.
@param mixed $default
An optional default value.

@retval mixed
@return mixed
The value, if found, or the default, is specified, or NULL.
197127
public function header($name, $default = NULL) {
    if (isset($this->headers[$name])) {
      return $this->headers[$name];
    }
    return $default;
  }
714867
public static function getString($name, $default = null)
    {
        if (isset($_GET[$name]) && $_GET[$name] !== '') return self::parseInputToString($_GET[$name]);
        return $default;
    }
1047248
public function getPost($name, $default = null)
    {
        return isset($this->posts[$name]) ? $this->posts[$name] : $default;
    }
317273
public function get($name, $default = null)
    {
        return isset($this->attributes[$name]) ? $this->attributes[$name] : $default;
    }
906134
public function get($name, $default = null)
    {
        $result = $default;
        if($this->offsetExists($name)) {
            $result = $this->offsetGet($name);
        }

        return $result;
    }
358156
public function get($name, $default = null)
    {
        return isset($this->filters[$name]) ? $this->filters[$name] : $default;
    }
1276062
public function get(string $name, $default = null, $onlyReturnFirst = true)
    {
        if ($this->has($name)) {
            $value = $this->data[$this->normalizeName($name)];

            if ($onlyReturnFirst) {
                return $value[0];
            }
        } else {
            $value = $default;
        }

        return $value;
    }
856062
public function get($name, $default = null)
    {
        $result = $default;
        if(isset($this->__options[$name]) || array_key_exists($name, $this->__options)) {
            $result = $this->__options[$name];
        }

        return $result;
    }
616973
public function get( $name, $default = null )
	{
		if( ( $entry = $this->object->get( $name ) ) !== null ) {
			return $entry;
		}

		return $default;
	}
806879
public function getParam($name, $default = null)
    {
        $params = $this->_context->params;
        return isset($params[$name]) ? $params[$name] : $default;
    }
466373
public function getValues(string $name, array $default = []): array
    {
        $key = strtolower($name);
        if (!array_key_exists($key, $this->headers)) {
            return $default;
        }

        return $this->headers[$key]->getValuesAsArray();
    }
1133384
public function get($name, $default = null)
        {
            if (Arrays::exists($name, $this->data)) {
                return $this->data[$name];
            }

            return $default;
        }
234843
public function getRequestParameter($name,$default="")
    {
        if(array_key_exists($name, $this->get))
            return $this->get[$name];
        else if(array_key_exists($name, $this->post))
            return $this->post[$name];
        return $default;
    }
945636
public function getHeader($name, $default = null)
    {
        if (empty($name)) {
            return $default;
        }

        $temp = 'HTTP_' . strtoupper(str_replace('-', '_', $name));
        if (isset($this->env[$temp])) {
            return $this->env[$temp];
        }

        if (function_exists('apache_request_headers')) {
            // @codeCoverageIgnoreStart
            $method = 'apache_request_headers';
            $headers = $method();
            if (isset($headers[$name])) {
                return $headers[$name];
            }
            $header = strtolower($name);
            foreach ($headers as $key => $value) {
                if (strtolower($key) == $name) {
                    return $value;
                }
            }
        }
        // @codeCoverageIgnoreEnd

        return $default;
    }
1011346
public function get($name, $default = null)
    {
        if (strpos($name, $this->sectionDelimiter) === false) {
            return parent::get($name, $default);
        }

        list($section, $property) = explode($this->sectionDelimiter, $name, 2);
        $section = ($this->offsetExists($section))? $this->get($section) : null;

        if (!$section instanceof self) {
            return $default;
        }

        return $section->get($property, $default);
    }
719482
public function getParameter($name, $default = NULL)
	{
		if (isset($this->params[$name])) {
			return $this->params[$name];

		} else {
			return $default;
		}
	}
71187
public static function get($name = null, $default = null)
    {
        self::init();

        if (!$name) {
            return self::$config;
        } else {
            if (isset(self::$config[$name])) {
                return self::$config[$name];
            } else {
                return $default;
            }
        }
    }