English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The header_remove() function deletes previously set HTTP headers.
void header_remove ([ string $name ] )
Used to delete previously set HTTP headers.
No value returned
Serial Number | Parameters and Description |
---|---|
1 | name It contains the header names set to be deleted |
Try the following examples to delete a header and all headers:
<?php //Delete specified headers header("X-f1: b1); header("X-b1: b2); header_remove("X-f1); //Cancel all previously specified headers header("X-Foo: Bar); header("X-Bar: Baz); header_remove(); ?>
Output Result
X-b1: b2