Remove chars

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
JKM
Forum Contributor
Posts: 221
Joined: Tue Jun 17, 2008 8:12 pm

Remove chars

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Remove chars

Post by requinix »

Are you sure you want to remove bad stuff and not keep good stuff? There's a difference.

str_replace
Post Reply