getallheaders — Fetch all HTTP request headers
array getallheaders ( void )
Example
<?php
foreach (getallheaders() as $name => $value) {
echo "$name: $valuen";
}
?>