headers_sent()
The headers_sent() function checks if HTTP headers have already been sent. This is useful for ensuring that headers are sent before output.