title: How to check if Headers already been sent in PHP
body: <p>I think most of us know about the infamous "Headers already sent" error in PHP. Can I check someway if headers already have been sent?</p>
  
  <p>It would be really handy to do such, before going all out with trying to set some SESSION data or similar.</p>
  
  <p>Thanks!</p>