PHP3 Manual | ||
---|---|---|
Prev | Next |
getallheaders -- Fetch all HTTP request headers
This function returns an associative array of all the HTTP headers in the current request.
Example 1. GetAllHeaders() Example $headers = getallheaders(); while (list($header, $value) = each($headers)) { echo "$header: $value<br>\n"; } |
NOTE: GetAllHeaders() is currently only supported when PHP runs as an Apache module.
Prev | Home | Next |
Functions related to HTTP | Up | header |