headers_list

PHP 5, PHP 7, PHP 8
headers_list - Returns a list of response headers sent (or ready to send)
Manual
Code Examples

Example #1 Example using headers_list

Result: 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" }
PHP Version: