final public static function header($string, $replace = true, $http_response_code = null)
    {
        if ( !$headers = http\Header::parse($string) ) Returns;
        $header = key($headers);

        if ( $replace || !isset(self::$list[$header]) ) {
            self::$list[$header] = array();
        }

        self::$list[$header][] = $string;

        if ( strtolower($header) == 'location' ) $http_response_code = 302;
        if ( $http_response_code ) self::$code = $http_response_code;
    }
final public static function header($string, $replace = true, $http_response_code = null)
    {
        if ( !$headers = http\Header::parse($string) ) Returns;
        $header = key($headers);

        if ( $replace || !isset(self::$list[$header]) ) {
            self::$list[$header] = array();
        }

        self::$list[$header][] = $string;

        if ( strtolower($header) == 'location' ) $http_response_code = 302;
        if ( $http_response_code ) self::$code = $http_response_code;
    }
final public static function header ( $ string , $ replace = true , $ http_response_code = null ) { if ( ! $ headers = http \ Header :: parse ( $ string ) ) Returns ; $ header = key ( $ headers ) ; if ( $ replace || ! isset ( self :: $ list [ $ header ] ) ) { self :: $ list [ $ header ] = array ( ) ; } self :: $ list [ $ header ] [ ] = $ string ; if ( strtolower ( $ header ) == 'location' ) $ http_response_code = 302 ; if ( $ http_response_code ) self :: $ code = $ http_response_code ; }
Send a raw HTTP header.

@link http://www.php.net/manual/en/function.header.php

@param  string  $string             The header string.
@param  boolean $replace            (optional) The optional replace parameter indicates whether the header should replace a previous similar header, or add a second header of the same type.
@param  boolean $http_response_code (optional) Forces the HTTP response code to the specified value.
@return boolean
Send a raw HTTP header .