function mat($str){ $mat = array("нах"=>"*",".ru"=>"*",".tk"=>"*",".com"=>"*","еба"=>"*","хуй"=>"*"); return strtr($str,$mat); }