Gen. partnerAlgotech

PHP function header()

Sends the HTTP header and the raw form.

|
September 11, 2019

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.

Other Resources

Official header documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.