Skip to content

Kirby 3.5.7.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