View Single Post
Old 03-08-2004, 09:40 PM  
Azathoth
Confirmed User
 
Join Date: Nov 2002
Location: Blah
Posts: 217
PHP experts how would you do this?

In perl say you did this:

$username =~ tr/[0-9a-zA-Z_\-]//csd;
( This would strip all but alphanumeric chars and _ and - chars )

What would be the equivelant in PHP? I can't seem to find one

- Az
Azathoth is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote