The header() function sends a raw HTTP header to a client. It is important to notice that header() must be called before any actual output is sent.