function compare_strings($str1, $str2)
{
$count=0;
$compare[] = substr($str1, 0, 1);
$compare[] = substr($str1, 1, 1);
$compare[] = substr($str1, 2, 1);
$compare[] = substr($str1, 3, 1);
foreach($compare as $string)
{
if(strstr($str2, $string)) { $count++; }
}
if($count>1)
{
return TRUE;
}else{
return FALSE;
}
}