我正在尝试编写一个函数,可以将所有字符串传递到其中进行清理,以便从中得到的字符串在插入数据库时是安全的。但是有很多过滤函数,我不确定我应该使用/需要哪些过滤函数。
请帮我填空:
请帮我填空:
function filterThis($string) {
$string = mysql_real_escape_string($string);
$string = htmlentities($string);
etc...
return $string;
}