<?php
print_r(http_parse_headers(
"Host: localhost\r\n".
+"Host: ambigious\r\n".
"Nospace:here\r\n".
"Muchspace: there \r\n".
"Empty:\r\n".
));
?>
--EXPECTF--
-Content-type: text/html
-X-Powered-By: PHP/%s
-
-Array
+%sArray
(
- [Host] => localhost
+ [Host] => Array
+ (
+ [0] => localhost
+ [1] => ambigious
+ )
+
[Nospace] => here
[Muchspace] => there
[Empty] =>