public function get(string $name): ?string
    {
        $key = strtolower($name);
        if (!isset($this->headers[$key])) {
            return null;
        }

        return $this->headers[$key][1];
    }
public function get(string $name): ?string
    {
        $key = strtolower($name);
        if (!isset($this->headers[$key])) {
            return null;
        }

        return $this->headers[$key][1];
    }
public function get ( string $ name ) : ? string { $ key = strtolower ( $ name ) ; if ( ! isset ( $ this -> headers [ $ key ] ) ) { return null ; } return $ this -> headers [ $ key ] [ 1 ] ; }
Returns the header value by header name if it exists, null otherwise.

@since 1.0.0

@param string $name The header name.

@return string|null The header value by header name if it exists, null otherwise.
Returns the header value by header name if it exists null otherwise .