Skip to content

Kirby 6.0.0

V::match()

Checks if the value matches the given regular expression

V::match(mixed $value, string $pattern): bool

Parameters

Name Type Default
$valuerequired mixed no default value
$patternrequired string no default value

Return type

bool

Parent class

Kirby\Toolkit\V