detect spam in a string,
this function will return true if spam is detected or false if there is no spam:
this function will return true if spam is detected or false if there is no spam:
PHP Code:
function gum_spam_check($str)
{
$arr = array('.co','.net','www.','http:','wen.','mobisex','.in','.ru','.tk');
foreach($arr as &$value)
{
if(stristr($str, $value))
{
return true;
break;
}
}
return false;
}
Comment