Home > Article > Backend Development > How to get the header information sent to the user in php_PHP tutorial
This article mainly introduces the method of obtaining the header information sent to the user in php, involving the usage skills of the headers_list function in php , friends in need can refer to it
The example in this article describes how PHP obtains the header information sent to the user. Share it with everyone for your reference. The specific analysis is as follows:
The headers_list function has no parameters and returns an array. The returned array contains a numerical index table containing the header information to be sent to the client
?
3 4 5
|
header("Expires: Sat, 12 Dec 1989 05:30:00 GMT");
echo "This is some output. ";
|