src/Finder.php
protected function levenshteinUtf8($string1, $string2)
    {
        $charMap = array();
        $string1 = $this->utf8ToExtendedAscii($string1, $charMap);
        $string2 = $this->utf8ToExtendedAscii($string2, $charMap);

        return levenshtein($string1, $string2);
    }
protected function levenshteinUtf8($string1, $string2)
    {
        $charMap = array();
        $string1 = $this->utf8ToExtendedAscii($string1, $charMap);
        $string2 = $this->utf8ToExtendedAscii($string2, $charMap);

        return levenshtein($string1, $string2);
    }
protected function levenshteinUtf8 ( $ string1 , $ string2 ) { $ charMap = array ( ) ; $ string1 = $ this -> utf8ToExtendedAscii ( $ string1 , $ charMap ) ; $ string2 = $ this -> utf8ToExtendedAscii ( $ string2 , $ charMap ) ; return levenshtein ( $ string1 , $ string2 ) ; }
Calculate the levenshtein distance between two strings.

@param string $string1
@param string $string2
@return int
Calculate the levenshtein distance between two strings .