bostboy — 2011-09-19T21:32:22-04:00 — #1
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.
guido2004 — 2011-09-20T03:34:05-04:00 — #2
bostboy — 2011-09-20T09:00:48-04:00 — #3
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?