Forum Moderators: coopster
I use to remove non alphanumeric characters:
$str = preg_replace("/[^a-zA-Z0-9s]/", "", $str);
Is there a way to append some of the allowed characters into the function, or some other preg_replace method of doing this? It does need to be a preg_replace for other reasons, otherwise I would have simply used a str_replace multiple times.
Thanks.