Escape an entire array to prevent injection attacks

/ Published in: PHP
Save to your folder(s)

Usage: $_POST = mysql_real_escape_array($_POST)

Copy this code and paste it in your HTML
  1. function mysql_real_escape_array($t){
  2. return array_map("mysql_real_escape_string",$t);
  3. }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.