我有这个数组:如何组合阵列?
Array (
[question_id] => Array ([0] => 4 [1] => 4 [2] => 4 [3] => 4 [4] => 4 [5] => 4 [6] => 4 [7] => 4)
[result_branch] => Array ([0] => 126 [1] => 130[2] => 134 [3] => 1232 [4] => 128134 [5] => 16 [6] => 128134 [7] => 12136
[text] => Array ([0] => 3213 [1] => qweq [2] => wdas [3] => d [4] => cxzc [5] => xzczx [6] => czx [7] => saed) )
我需要的是这样的:
Array (array([question_id]=>4,[result_branch]=>126,[text]=>3213),
array([question_id]=>4,[result_branch]=>130,[text]=>qweq),
array([question_id]=>4,[result_branch]=>134 ,[text]=>wdas),
array([question_id]=>4,[result_branch]=>1232 ,[text]=>d),
...
array([question_id]=>4,[result_branch]=>12136 ,[text]=>saed)
)
我怎样才能得到这样的结果?
代码改变的关键在于它有没有尝试过任何东西 –
哪里的数据从何而来? –