HTTP functions allow you to operate on information sent by the Web server to the browser before other output is sent.
HTTP functions are part of the core of PHP. No installation is required to use these functions.
PHP : Indicates the earliest PHP version that supports this function.
| function | describe | PHP |
|---|---|---|
| header() | Send raw HTTP headers to the client. | 3 |
| headers_list() | Returns a list of sent (or pending) response headers. | 5 |
| headers_sent() | Check if/where HTTP headers were sent. | 3 |
| setcookie() | Send an HTTP cookie to the client. | 3 |
| setrawcookie() | The cookie value is not URL-encoded and an HTTP cookie is sent. | 5 |
none.