Hi,
I have a string that can look a little different from time to time.
String Example 1: ((823584X80X998.NAOK == "1"))
String Example 2: ((823584X80X1001.NAOK == "1" or 823584X80X1001.NAOK == "2" or 823584X80X1001.NAOK == "3"))
And I have this array with matching key (i've shortened the array for readability)
(
[823584X80X998.NAOK] => Array
(
[question_properties] => Array
(
[qid] => 998
[name] => 'F8'
)
)
[823584X80X1001.NAOK] => Array
(
[question_properties] => Array
(
[qid] => 1001
[name] => 'F10'
)
)
)
so what I want to be able to do is to echo the string but replace the matching key with the name property of the array
So the result would look like this:
String Example 1: ((F8 == "1"))
String Example 2: ((F10 == "1" or F10 == "2" or F10 == "3"))
Any thoughts?
Cheers
/Adam