I need some effective way to escape all special characters in string.For example, my string
I need some effective way(1) [2] for $10 + e
should be converted in
I need some effective way\(1\) \[2\] for \$10 \+ e
thx
mysql_real_escape_string
and rawurlencode
- Basti 2012-04-03 22:22
Try quotemeta
:
http://uk3.php.net/manual/en/function.quotemeta.php