Link to home
Start Free TrialLog in
Avatar of jcbodyworks
jcbodyworks

asked on

Converting CC Info into a a new xxxx-xxx string

I have a credit card number I grab from the database. I need to convert this string into a format where all digits become an x, except for the last four digits. any ideas how to do this? Thanks!
ASKER CERTIFIED SOLUTION
Avatar of steelseth12
steelseth12
Flag of Cyprus image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial