Link to home
Create AccountLog in
Avatar of tmcclint
tmcclintFlag for United States of America

asked on

Encode a string to have only letters and numbers for output

I need a PHP function that doesn't require any fancy server configuration that can encode a string, for instance an email address, where the output is ONLY letters and numbers. I've tried several examples I've found and some seem to put the "=" equals sign in the output which is causing me problems. I just don't want people seeing this to recognize the string as an email address. It isn't supposed to be secure, just a simple way to disguise the string. Any Ideas? I've tried base64_encode() and convert_uuencode() and from time to time each will include the "=" character.


Avatar of István Nagy
István Nagy
Flag of Romania image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of tmcclint


This was exactly what I was looking for. I just wasn't finding anything on Google. Thank-you very much.