PHP function header()
Availability in PHP 4.0
Sends the HTTP header and the raw form.
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$string |
string |
not | Header content |
$replace |
bool |
true, | The optional replace parameter indicates whether the header should replace a previous similar header, or add a second header of the same type. By default it will replace, but if you pass in false as the second argument you can force multiple headers of the same type. For example: |
$http_response_code |
int |
null | Forces the HTTP response code to the specified value. |
Return values
Returns nothing.