Mime::matches()
Tests if a MIME wildcard pattern from an Accept
header matches a given type
Mime::matches(string $test, string $wildcard): bool
Parameters
Name | Type | Default |
---|---|---|
$test * | string |
– |
$wildcard * | string |
– |
Return type
bool