Property | Type | Description | |
---|---|---|---|
$haystack | Haystack | ||
$needle | Needle | ||
$sorted_haystack | Hold the sorted comparison stack. |
Method | Description | |
---|---|---|
__construct ( string $needle, array $haystack ) : void | Finder constructor. | |
all ( ) : array | Return all strings in sorted match order. | |
first ( ) : mixed | Return the highest match. | |
hasExactMatch ( ) : boolean | Return whether there is an exact match. |
Method | Description | |
---|---|---|
levenshteinUtf8 ( string $string1, string $string2 ) : integer | Calculate the levenshtein distance between two strings. | |
sortHaystack ( ) : void | Sort Haystack. | |
utf8ToExtendedAscii ( string $str, array &$map ) : string | Ensure a string only uses ascii characters. |
public hasExactMatch ( ) : boolean | ||
return | boolean |