- ob_start: documentation ( source)
- ob_end_flush: documentation ( source)
- header: documentation ( source)
<?php
function myCallback($buffer, $flags) {
if ($flags & PHP_OUTPUT_HANDLER_START) {
header('Server: LastMinuteHeaderServer');
}
}
ob_start('myCallback');
echo "Hello World!";
ob_end_flush();