Home > PHP > Function > Apache > getallheaders()

getallheaders()

getallheaders - Fetch all HTTP request headers

Syntax

array getallheaders ()

Arguments

-

Description

Fetches all HTTP headers from the current request.

Version

PHP 4, 5

Return value

An associative array of all the HTTP headers in the current request, or FALSE on failure.