Avatar of tmcclint
tmcclint
Flag 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.

Thanks.

Todd
PHP

Avatar of undefined
Last Comment
tmcclint

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
István Nagy

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
tmcclint

ASKER
This was exactly what I was looking for. I just wasn't finding anything on Google. Thank-you very much.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23