hi guys,
what i'm trying to do is to do a function addslashes to all my arguments.. before putting them into the db.
im trying to achieve something like
all_adddslashes($arg1,$arg2,$arg3)
but i realised that this has to be done thru passing reference. any ideas how to handle optional arguments by reference?
e.g:
function all_addslashes() {
$numargs = func_num_args();
$arg_list = func_get_args();
for ($i = 0; $i < $numargs; $i++) {
addslashes($arg_list[$i]);
}
}
any help would be appreciated!! thanks!