headers_list
PHP 5, PHP 7, PHP 8
headers_list - Returns a list of response headers sent (or ready to send)
Manual
headers_list(
): array
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.
Parameters
This function has no parameters.
Return Values
Returns a numerically indexed array of headers.
Notes
Note:
Headers will only be accessible and output when a SAPI that supports them is in use.