Contact: aviboots(AT)netvision.net.il
41,214 questions
53,716 answers
573 users
$s1 = "abcdvopm"; $s2 = "AbCfwdvz"; $common = similar_text($s1, $s2, $percent); echo $common . " characters in common" . "\n"; printf("that is %.2f%% of the string", $percent); /* run: 3 characters in common that is 37.50% of the string */