replacing sub strings in a loop with conditions in mind
Hi! I have a slightly weird code I have to work on and I am hoping someone can give me a hand with this. It is ok if your suggestion is in pseudo code or something other than PHP as long as I get to understand the concept.
The project is complex so I will only expose the part that really troubles me..
I have a huge array or strings. Each string is a series of numbers in a range from 1 to 8,,, and basically the array is comprised of 40320 permutations of the original sequence.
so among many others my strings can look something like this: