note 66333 deleted from function.getallheaders by didou
| From: | didou@php.net | Date: | Mon, 31 Dec 2007 00:05:23 +0000 |
| Subject: | note 66333 deleted from function.getallheaders by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-134560@lists.php.net to get a copy of this message | ||
Note Submitter: tigr at mail15 dot com
----
Just a bit faster version of ZevS' function (does not use regular expressions and does not
require POSIX regexps that is in PECL in php6):
<?php
function emu_getallheaders() {
foreach($_SERVER as $name => $value)
if(substr($name, 0, 5) == 'HTTP_')
$headers[substr($name, 5)] = $value;
return $headers;
}
?>