note 90370 deleted from function.levenshtein by danbrown

From: Date: Sat, 18 Apr 2009 12:55:36 +0000
Subject: note 90370 deleted from function.levenshtein by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153465@lists.php.net to get a copy of this message
Note Submitter: Joris ---- Does de second variant of this function actuall work? With: $i=0; $u=0; $d=0; $t1='Joris'; $t2='oris'; $l=levenshtein($t1,$t2,$i,$u,$d); echo $t1.'='.$t2.' '.$l.':'.$i.':'.$u.':'.$d."\n"; $l=levenshtein($t1,$t2); echo $t1.'='.$t2.' '.$l."\n"; I get the following output: Joris=oris 0:0:0:0 Joris=oris 1 The second output line I dig, but not the first. Any idea?

« previous php.notes (#153465) next »