/ Published in: PHP
This function can be used to sanitize single string variable or massive like POST, GET, COOKIE. It performs magic quotes gpc check, strip tags, trim and escape the dangerous signs with mysqlrealescape_string.
Expand |
Embed | Plain Text
function str2db($input, $strip_tags=true) { foreach($input as $key => $value) { $input[$key] = str2db($value); } } else { } else { } } if($strip_tags) { } } return $input; }
You need to login to post a comment.
