Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个 PHP 页面,我在其中手动过滤 POST 和 GET 输入以防止注入。有没有办法使用 *mysql_real_escape_string* 过滤每个 POST 和 GET 我的页面自动接收?
海用户11876542,
那么 array_map("YOUR_FUNCTION",$_POST) 呢?
例如
$post = array_map('strip_tags',$_POST);