<?php
namespace Smoren\SimilarStringFinder;
class SimilarStringFinderExample extends SimilarStringFinder
{
public function __construct()
{
parent::__construct();
$this->addStrings('????', ['????', '??????']);
$this->addStrings('????', ['????', '??????']);
}
public static function test()
{
$inst = new static();
echo "??????? => " . $inst->find('???????', -1, $accuracy) . " (accuracy: {$accuracy})" . "\n";
echo "???????? => " . $inst->find('????????') . "\n";
}
}
|