composer require labile/text-matcher
<?php
declare(strict_types=1);
use Astaroth\TextMatcher;
$textMatcher = new TextMatcher("i love Katya", "love", TextMatcher::CONTAINS);
if ($textMatcher->compare()){
//...
}
A simple string comparison library
composer require labile/text-matcher
<?php
declare(strict_types=1);
use Astaroth\TextMatcher;
$textMatcher = new TextMatcher("i love Katya", "love", TextMatcher::CONTAINS);
if ($textMatcher->compare()){
//...
}
A simple string comparison library
BSD 3-Clause "New" or "Revised" License