Return to Snippet

Revision: 2820
at April 20, 2007 10:14 by d4rk


Initial Code
function mysql_real_escape_array($t){
    return array_map("mysql_real_escape_string",$t);
}

Initial URL
http://us.php.net/mysql_real_escape_string

Initial Description
Usage: $_POST = mysql_real_escape_array($_POST)

Initial Title
Escape an entire array to prevent injection attacks

Initial Tags
mysql, php

Initial Language
PHP