|
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 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
|