Increment Letters like numbers

revinsanasylum

New Member
I would like to write a function that takes in 3 characters and increments it and returns the newly incremented characters as a string.I know how to increase a single letter to the next one but how would I know when to increase the second letters and then stop and then increase the first letter again to have a sequential increase?\[quote\] So if AAA is passed, return AAB. If AAZ is passed return ABA (hard part).\[/quote\]I would appreciate help with the logic and what php functions will be useful to use.Even better, has some done this already or there is a class available to do this??Thanks all for any help
 
Back
Top