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 |
Return type
array