Page 1 of 1

Remove chars

Posted: Sun Jun 20, 2010 11:55 am
by JKM
Hi guys,

I want to remove all of these chars from a string:

Code: Select all

* . " / \ [ ] : ; | = , ^ { } ( ) & % ¤ $ # ' @ ? § ´ ` + = ~ ¨< >
How is the best way to do it?

Re: Remove chars

Posted: Sun Jun 20, 2010 2:07 pm
by requinix
Are you sure you want to remove bad stuff and not keep good stuff? There's a difference.

str_replace