I'm a PHP novice, trying to validate HTML form submission via PHP learned in a tutorial.
Code uses mysql_real_escape_string
which PHP.net says is deprecated.
Here's an excerpt of that entire section:
/*Cleans an array to protect against injection attacks.*/
function f_clean($array) {
return array_map('mysql_real_escape_string', $array);
}
What, if anything, should I add or change in the PHP in order maintain this security measure?