Millar Posted April 8, 2007 Share Posted April 8, 2007 I have a string with a line of alpha-numeric values. I want a function to take the previous value u and then increment it by one, in order of the string. So, if the string was "1234567890abcdefghijklmnopqrstuvwxyz", 1 goes to 2, 0 goes to a, and z would go to 11. But endlessly so something like dw34fz would go to dw34g1. If anybody has anything that can do this or can write it I would be very thankful. Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted April 8, 2007 Share Posted April 8, 2007 um, not sure is this helps, or if php has this sort if thing, but look for string indexing ( i know slicing exists ) you may have to write a function manually, but it should be possible. id go something like incrimenting a number, then corisponding that to the string indexing if you ned more help, ill try to come up with something, but i cant garentee itll wrk, i dont do much string slicing at all ( in fact, i only know the theaory behind i) good luck pm me if you need more help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.