header_remove

PHP 5 >= 5.3.0, PHP 7, PHP 8
header_remove - Remove previously set headers
Manual
Code Examples

Example #1 Unsetting specific header.

Result: X-Bar: Baz
PHP Version:

Example #2 Unsetting all previously set headers.

PHP Version: