Skip to content

Kirby 4.4.1

Str::similarity()

Calculates the similarity between two strings with multibyte support

Str::similarity(string $first, string $second, bool $caseInsensitive = false): array

Parameters

Name Type Default Description
$first * string
$second * string
$caseInsensitive bool false If true, strings are compared case-insensitively

Return type

array

Parent class

Kirby\Toolkit\Str