Calculates the Levenshtein distance of two strings. This function is better than most because it takes utf8 characters into account.
More information on it can be seen here, on wikipedia.
The string
The string to compare to
A "distance" number - the higher, the further str is from cmp
str
cmp
Calculates the Levenshtein distance of two strings. This function is better than most because it takes utf8 characters into account.
More information on it can be seen here, on wikipedia.