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