|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-18 06:13 UTC] hholzgra@php.net
[2002-04-18 16:18 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 15:00:01 2025 UTC |
Hi!! I've got a little problem with the levenshtein function. There is a particular case where the returned value is not correct. I tried it with 4.0.6 and 4.1.2. when the differences are at the beginning, the returned value is one less than what I expected. For example : <? echo "lev = ".levenshtein("kdos", "los");?> prints lev = 1 and <? echo "lev = ".levenshtein("kdos", "ls"); ?> prints lev = 2 whereas in the first case, I expect 2 and in the second, 3. that's it. Thanx!!