96qbhy/like-string

简单的字符串相似度匹配函数。

1.0.1 2017-08-12 08:11 UTC

This package is not auto-updated.

Last update: 2024-10-27 05:25:30 UTC


README

简单的相似字符串处理库

安装

$ composer require 96qbhy/like-string 

使用

require 'vendor/autoload.php';

use \Qbhy\LikeString\LikeString;

$bool = LikeString::formatFullMatch('qbhy', 'qbh7') ? 'true' : 'false';
//print_r($bool);

$numeric = LikeString::generateNumeric('aabbccdd');

print_r($numeric);
//like 22445577

https://www.96qbhy.com
96qbhy@gmail.com