accept_contains_mime()
accept_contains_mime(string $accept_header, string $mime_type) : boolean
Figures out whether a given http accepts header contains a specified mime type.
Parameters
string | $accept_header | The accept header to search. |
string | $mime_type | The mime type to search for. |
Returns
boolean —Whether the specified mime type was found in the specified accepts header.