2014-10-18 65 views

回答

1
function check_substr_exist($str1,$str2) 
{ 
$count = false; 
$arr = explode(" ",$str2); 

foreach ($arr as $val) 
{ 
    if(stripos($str1, $val) !== false) 
    { 
     $i=true; 
    } 
} 

return $i; 

} 

echo check_substr_exist("hi tomorrow is Friday", "tomorrOW is friday HI"); 
相关问题