public static mediaRangeMatches ( string $mediaRange, string $mediaType ) : boolean | ||
$mediaRange | string | The media range, for example "text/*" |
$mediaType | string | The media type to match against, for example "text/html" |
return | boolean | TRUE if both match, FALSE if they don't match or either of them is invalid |