I\'m trying to build a standard compliant website framework which serves XHTML 1.1 as application/xhtml+xml or HTML 4.01 as text/html depending on the browser support. Curre
PEAR's HTTP2 library supports parsing all types of Accept headers. It's installable via composer and PEAR.
Accept
Examples can be found at the documentation or my blog post.