blasterstudios
Technical User
I need help creating a function that will remove duplicate characters from a string of text. Basically i want to take a string submitted by the user (John Smith) and take out duplicates of the letters. So end result would be John Smit.
A better example would be Dog Frog Pog
End result will be Dog Fr P
I imagine i would have to create an array and cycle through the string pulling out each letter as it was found as a duplicate.
Anyone know how to do this?
A better example would be Dog Frog Pog
End result will be Dog Fr P
I imagine i would have to create an array and cycle through the string pulling out each letter as it was found as a duplicate.
Anyone know how to do this?