The header() function is used to a raw HTTP header to a client.
Syntax
header(string,replace,http_response_code)
string Required. Specifies the header string to send
replace Optional. Indicates whether the header should replace previous
or add a second header. Default is TRUE (will replace).
FALSE (allows multiple headers of the same type)
http_response_code Optional. Forces the HTTP response code to the specified value
EXAMPLES
1) Redirect the browser to a Page
<?php
header("Location: http://tech.QueryHome.com/"); /* Redirect browser */
?>
2) Use of Replace variable
<?php
header('WWW-Authenticate: Negotiate');
header('WWW-Authenticate: NTLM', false);
?>