zoranbankovic at gmail dot com (17-Oct-2010 04:59)
If someone wants to add slashes to multidimensional array directly, can use recursive (pass-by-reference) function like this: <?php function slashit(&$aray, $db_link)
{
foreach ($aray as $key => &$value)
if(is_array($value)) slashit($value, $link);
else $aray[$key] = mysql_real_escape_string($value, $db_link);
}