src/Http/Message/Message.php
public function header($name)
    {
        $exists = isset($this->headers[$name]);

        return $exists ? $this->headers[$name] : array();

        // getHeader
    }
public function header($name)
    {
        $exists = isset($this->headers[$name]);

        return $exists ? $this->headers[$name] : array();

        // getHeader
    }
public function header ( $ name ) { $ exists = isset ( $ this -> headers [ $ name ] ) ; return $ exists ? $ this -> headers [ $ name ] : array ( ) ; // getHeader }
Returns a message header value by the given case-insensitive name.

@param  string $name
@return array
Returns a message header value by the given case - insensitive name .