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
$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

Comment