From 0eb51100b77996efbf0a728efe55ded996814025 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Tue, 23 May 2000 14:10:37 +0000 Subject: 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()) --- ext/standard/php_string.h | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/standard/php_string.h') diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h index e71cf8f997..537c405fe7 100644 --- a/ext/standard/php_string.h +++ b/ext/standard/php_string.h @@ -43,6 +43,7 @@ PHP_FUNCTION(chop); PHP_FUNCTION(trim); PHP_FUNCTION(ltrim); PHP_FUNCTION(soundex); +PHP_FUNCTION(levdist); PHP_FUNCTION(count_chars); PHP_FUNCTION(explode); -- cgit v1.2.1