PHP function header_register_callback()
Availability in PHP 4.0
Registers a function that will be called when PHP starts sending output.
The callback is executed just after PHP prepares all headers to be sent,
and before any other output is sent, creating a window to manipulate the outgoing headers before being sent.
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$callback |
callable |
Return values
bool
Returns true on success, otherwise false on failure.