Hey everyone,
What's the best function (or should I write one?) for stripping any one of a number of unwanted characters from a string?
Say I have the string:
Published "MIS" Standards Group(TM)
where the (tm) is an actual trademark character.
I want to get rid of the double quotes (") and the trademark symbol (TM).
Do I need to know the ASCII values of the characters I want to get rid of?
In either case, what function should I use to do it, and if there's no predefined function, how might I start writing my own?
strip_tags() does exactly what I'm looking for, except, of course, it strips irrelevant characters for this purpose 🙂
Thanks in advance for any help!!!