Hi,
I have string like this;
"String {tag_0} text {tag_2} and {tag_1}"
Now i need to replace all {tag_INDEX} with elements from array
$myArray = array('a','b','c');
so after replacement it should looks like:
"String a text c and b"
What is the best way to do this? I'm trying with preg_replace and preg_replace_callback but without any good results