I have 5000, sometimes more, street address strings in an array. I\'d like to compare them all with levenshtein to find similar matches. How can I do this without looping throug
You could group them based on soundexes then limit the comparisons to the nearest N cases...
$mashed=array(); foreach ($address as $key=>$val) { $mashed[$key]=soundex($val); } sort($mashed);
Then iterate through the keys of $mashed.
C.