note 66333 deleted from function.getallheaders by didou

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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;
}
?>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.