headers_list -- Returns a list of response headers sent (or ready to send)
Syntax
array headers_list ( void )
headers_list() will return a numerically indexed array
of headers to be sent to the browser / client. To determine whether or not
these headers have been sent yet, use headers_sent().
Example 1. Examples using headers_list()
<?php
/* setcookie() will add a response header on its own */ setcookie('foo', 'bar');
/* Define a custom response header This will be ignored by most clients */ header("X-Sample-Test: foo");
/* Specify plain text content in our response */ header('Content-type: text/plain');
/* What headers are going to be sent? */ var_dump(headers_list());
headers list php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php headers list syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.