getallheaders
getallheaders
getallheaders
- It fetch all HTTP request headers
Syntax:
array getallheaders ( void)
This function returns an associative array of all the HTTP headers in the current request.
Example:
$headers = getallheaders();
print_r($headers);
This example will display all the request headers for the current request.
