OK, so I have a new project with me, it is basically on solving logical and reasoning type of problems. Like in maths you are given a figure and asked how many triangles are in it. What I have to do is.
User enters a code and a word. example
word -> example code -> aesxxasskmpaalee
here if we remove certain characters, we can form example word 4 times.
My guess was this can be achieved using preg_match_all but that would make me start from the place where i left, returning 1 as the answer, and rechecking will yield the same old result...
Am I missing something?