How may I concatenate the index respective questions and answers into
one string per index using ONE foreach loop? I do not want to use
numerical indexes just the named ones as below.
In other words, in one foreach loop, if possible, I want to have the
results as question0+answe r0 and question1+answe r1 in 2 separate
strings entered into an array.
Thanks much.
Array
(
[0] => Array
(
[0] => question0
[1] => question1
)
[QUEST] => Array
(
[0] => question0
[1] => question1
)
[ANSW] => Array
(
[0] => answer0
[1] => answer1
)
[1] => Array
(
[0] => answer0
[1] => answer1
)
)
one string per index using ONE foreach loop? I do not want to use
numerical indexes just the named ones as below.
In other words, in one foreach loop, if possible, I want to have the
results as question0+answe r0 and question1+answe r1 in 2 separate
strings entered into an array.
Thanks much.
Array
(
[0] => Array
(
[0] => question0
[1] => question1
)
[QUEST] => Array
(
[0] => question0
[1] => question1
)
[ANSW] => Array
(
[0] => answer0
[1] => answer1
)
[1] => Array
(
[0] => answer0
[1] => answer1
)
)
Comment