下面的函数check_porn_terms
检查一个变量是否包含不适合家庭使用的条件,如果它包含,则将用户重定向回主页面。一次可以在一个函数中使用两个变量吗?
如下所列,它检查变量$title
是否有不适合家庭使用的术语。我想对另一个变量$cleanurl
执行此检查。我可以用check_porn_terms($title, $cleanurl)
或其他类似的东西替换下面的check_porn_terms($title)
吗?如果不是,我该怎么做?
由于提前,
约翰
if(!check_porn_terms($title))
{
session_write_close();
header("Location:http://www.domain.com/index.php");
exit;
}
为什么不使用数组? – Cristian 2010-06-30 19:02:29