note 24439 deleted from function.quotemeta by nlopess
| From: | nlopess@php.net | Date: | Fri, 17 Feb 2006 11:15:12 +0000 |
| Subject: | note 24439 deleted from function.quotemeta by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-103902@lists.php.net to get a copy of this message | ||
Note Submitter: jama at keks dot com
----
function cleanersql ($text) {
return preg_replace('/([\W])/i',"\\\\\\1",$text);
}
//**
- note the escaped escape chars (\)
- add chars to preserve in this regex section: [\W*CHARS*]
- give addslashes() a try ;-)
*/