9 HTTP_ACCEPT=application/xml, application/xhtml+xml, text/html ; q = .8
10 HTTP_ACCEPT_LANGUAGE=de-AT,de-DE;q=0.8,en-GB;q=0.3,en-US;q=0.2
11 HTTP_ACCEPT_CHARSET=ISO-8859-1,utf-8;q=0.7,*;q=0.7
16 array('de', 'en', 'es'),
19 array('utf-8', 'iso-8859-1'),
22 array('foo/bar', 'application/xhtml+xml', 'text/html')
24 var_dump(http_negotiate_language($langs[0]));
25 var_dump(http_negotiate_language($langs[0], $lresult));
26 var_dump(http_negotiate_charset($csets[0]));
27 var_dump(http_negotiate_charset($csets[0], $cresult));
28 var_dump(http_negotiate_content_type($ctype[0]));
29 var_dump(http_negotiate_content_type($ctype[0], $tresult));
30 var_dump(http_negotiate_language(array("unknown")));
31 var_dump(http_negotiate_charset(array("unknown")));
32 var_dump(http_negotiate_content_type(array("unknown")));
42 string(10) "iso-8859-1"
43 string(10) "iso-8859-1"
44 string(21) "application/xhtml+xml"
45 string(21) "application/xhtml+xml"
61 [application/xhtml+xml] => 999