I have one array which contains several instances of the same character


I have another array that contains different values.

I have a string that contains the ‘?’ character and want to replace this with values out the second array.

However it keeps replacing the ? with one rather than replacing with the different values.

How do I do this?


Can you clarify by posting a very small example of two arrays, and a string with a start value and a string with expected end result?