public static function getHeader($header, $default = null)
    {
        $header  = strtolower($header);
        $headers = self::getInstance()->getHeaders();
        $headers = array_change_key_case($headers, CASE_LOWER);
        if (array_key_exists($header, $headers)) {
            $value = \is_array($headers[$header]) ? implode(', ', $headers[$header]) : $headers[$header];
            return $value;
        }
        return $default;
    }
public static function getHeader($header, $default = null)
    {
        $header  = strtolower($header);
        $headers = self::getInstance()->getHeaders();
        $headers = array_change_key_case($headers, CASE_LOWER);
        if (array_key_exists($header, $headers)) {
            $value = \is_array($headers[$header]) ? implode(', ', $headers[$header]) : $headers[$header];
            return $value;
        }
        return $default;
    }
public static function getHeader ( $ header , $ default = null ) { $ header = strtolower ( $ header ) ; $ headers = self :: getInstance ( ) -> getHeaders ( ) ; $ headers = array_change_key_case ( $ headers , CASE_LOWER ) ; if ( array_key_exists ( $ header , $ headers ) ) { $ value = \ is_array ( $ headers [ $ header ] ) ? implode ( ', ' , $ headers [ $ header ] ) : $ headers [ $ header ] ; return $ value ; } return $ default ; }
Search for a header value

@param string $header
@param mixed  $default

@return string
Search for a header value