Multibyte levenshtein distances have feature requests in the past. Therefore, we would like to create the mb_levenshtein function to implement this.
Add mb_levenshtein function.
function mb_levenshtein(string $string1, string $string2, int $insertion_cost = 1, int $replacement_cost = 1, int $deletion_cost = 1, ?string $encoding = null): int {}
This could break a function existing in userland with the same name.
PHP 8.5
To SAPIs Will add the aforementioned functions to all PHP environments.
Adds mb_levenshtein() to the mbstring extension.
No effect.
No new constants.
No changed php.ini settings.
This section details areas where the feature might be improved in future, but that are not currently proposed in this RFC.
Include these so readers know where you are heading and can discuss the proposed voting options.
TBD.
Userland implementation is here:
Keep this updated with features that were discussed on the mail lists.