Skip to content

Kirby 4.2.0

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

Parent class

Kirby\Filesystem\Mime