如何调用以下Class方法或函数?
原文链接:https://www.f2er.com/php/131186.html让我说这个参数从url得到:
$var = filter($_GET['params']);
类:
class Functions{ public function filter($data){ $data = trim(htmlentities(strip_tags($data))); if(get_magic_quotes_gpc()) $data = stripslashes($data); $data = MysqL_real_escape_string($data); return $data; } }
谢谢.