We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
http://www.php.net/manual/en/function。相似文本.php
正是如此。
http://www.php.net/manual/en/function.similar-text.php
Does exactly that.
您可以考虑使用 levenshtein,相似文本, soundex,或 变音功能。
You might consider using the levenshtein, similar-text, soundex, or metaphone functions.
另外,如果您将这种比较作为从数据库提取数据的一部分进行,则许多数据库引擎都有 SOUNDS LIKE(或 SOUNDEX)实现。在数据库服务器中执行此操作比在 PHP 中执行此操作更快。
Also, if you're doing this comparison as a part of a data extraction from a database, many DB engines have a SOUNDS LIKE (or SOUNDEX) implementation. Doing this in the DB server would be faster than doing it in PHP.