|
header_register_callbackCall a header function Description
bool header_register_callback(callable
$callback)Registers a function that will be called when PHP starts sending output.
The Warning
Callbacks are not stacked. Subsequent calls to header_register_callback
will silently de-register any existing Parameters
Return Values
Returns ExamplesExample #1 header_register_callback example The above example will output something similar to: Content-Type: text/plain a Notesheader_register_callback is executed just as the headers are about to be sent out, so any output from this function can break output.
See Also
|