Reference

Guide

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

Source code

kirby/src/Toolkit/Str.php#L818