小编use*_*443的帖子

如何在php中检查两个字符串的相似性?

说我有两个字符串

$string1 = "Hello my name is Steve and this is spam";
$string2 = "Hello my name is Steven and this comment is spam";
Run Code Online (Sandbox Code Playgroud)

这两个字符串是相似的.

有没有办法比较这些,如if ($string1 like $string2)在PHP?

php validation

2
推荐指数
1
解决办法
754
查看次数

标签 统计

php ×1

validation ×1