I know this should be a simple question, but I can't seem to get the syntax. I want to replace any character found in a list of individual characters in an expression with another character. So I want to provide a list like \&\,\.\@ and replace them with a space in an expression $exp.
Thanks, didn't realize I could use arrays with str_replace. That is exactly what I need in this case.
But just out of curiousity is there a way to do it with preg_replace?