Jump to content

Easy way to strip out non alphanumeric characters?


rgrne

Recommended Posts

I need to strip out non alphanumeric characters from usernames.  Just stripping them out would be OK, but replacing them with some other character would be better.  Is there any easy way to do this, like an equivalent of strip_tags for html characters?  I'm looking into eregi and eregi_replace, but it seems like I'd have to list all possible non-alphanumeric characters and go through letter by letter. Am I missing something?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.