similar_text(
$string1
,
$string2
$percent
);
//PHP 提供了一个极少使用的 similar_text 函数,但此函数非常有用,用于比较两个字符串并返回相似程度的百分比。
//$percent will have the percentage of similarity