added function "int levdist(string str1, string str2)"

that will calculate the Levenshtein distance between two
strings (faster and possibly more accurate than similar_text())
This commit is contained in:
Hartmut Holzgraefe 2000-05-23 14:10:37 +00:00
parent 6d51f4a788
commit 0eb51100b7
4 changed files with 120 additions and 1 deletions

View file

@ -162,6 +162,7 @@ function_entry basic_functions[] = {
PHP_FE(implode, NULL)
PHP_FE(setlocale, NULL)
PHP_FE(soundex, NULL)
PHP_FE(levdist, NULL)
PHP_FE(chr, NULL)
PHP_FE(ord, NULL)
PHP_FE(parse_str, NULL)