Property | Type | Description | |
---|---|---|---|
$cache | array | Cache for holding substring arrays key/value array | |
$useCache | boolean | Using caching to improve preformance on text2 inputs |
Method | Description | |
---|---|---|
__construct ( boolean $useCache = false ) | ||
__destruct ( ) | ||
distance ( string $text1, string $text2 ) : integer | Returns the string length of the longest common substring (LCS) | |
getCache ( ) : array | ||
similarity ( string $text1, string $text2 ) : string | Returns the Longest common substring |
protected array $cache | ||
return | array |
protected bool $useCache | ||
return | boolean |