|
headers_listReturns a list of response headers sent (or ready to send) Description
array headers_list()
headers_list will return a list of headers to be sent to the browser / client. To determine whether or not these headers have been sent yet, use headers_sent. ParametersThis function has no parameters. Return ValuesReturns a numerically indexed array of headers. Examples
Example #1 Example using headers_list The above example will output something similar to:
array(3) {
[0]=>
string(19) "Set-Cookie: foo=bar"
[1]=>
string(17) "Example-Test: foo"
[2]=>
string(39) "Content-Type: text/plain; charset=UTF-8"
}
Notes
See Also
|