note 68476 deleted from function.mysql-real-escape-string by aidan

From: Date: Sun, 24 May 2009 19:45:27 +0000
Subject: note 68476 deleted from function.mysql-real-escape-string by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155939@lists.php.net to get a copy of this message
Note Submitter: eddypearson at gmail dot com ---- A quick function to mysql_real_escape_string every value in array (Think $_SESSION and $_POST guys). This may be simple, and to some bloody obvious, but its useful little function, and I could find one on this page so: <?php function CleanArray($array) { foreach ($array as $key => $value) { $array[$key] = mysql_real_escape_string($value); } return $array; } ?>

« previous php.notes (#155939) next »