PHP.nl

getallheaders

getallheaders

Fetch all HTTP request headers

array **getallheaders**

Fetches all HTTP headers from the current request.

This function is an alias for . Please read the documentation for more information on how this function works. apache_request_headers``apache_request_headers

An associative array of all the HTTP headers in the current request.

Voorbeeld: example

<?php

foreach (getallheaders() as $name => $value) {
    echo "$name: $value\n";
}

?>

apache_response_headers