Skip to content

Kirby 5.1.1

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
$testrequired string no default value
$wildcardrequired string no default value

Return type

bool

Parent class

Kirby\Filesystem\Mime