How to remove all special char except $
(dollar sign) using php ?
I tried use this
$string = preg_replace("/[^ \w]+/", "", $string);
But all special char include $
(dollar sign) was remove
i tried this too $string = preg_replace("/$[^ \w]+/", "", $string);
But not work.
I want to store $
(dollar sign) , How can i do that ?