- var_dump: documentation ( source)
- headers_sent: documentation ( source)
- register_shutdown_function: documentation ( source)
- header: documentation ( source)
<?php
echo 'test';
header('X-Custom-Header: test');
register_shutdown_function(function () {
var_dump( headers_sent() );
});