summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2000-05-23 14:10:37 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2000-05-23 14:10:37 +0000
commit0eb51100b77996efbf0a728efe55ded996814025 (patch)
tree71eb143f99970ae6ffb284b12cec19719de30975 /ext/standard/basic_functions.c
parent6d51f4a78879d5160999f7b7ed6094bad89acdaf (diff)
downloadphp-git-0eb51100b77996efbf0a728efe55ded996814025.tar.gz
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())
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 4a1aa32a0d..8a45900d67 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -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)