php将数组键值相同的数组合并数组为一个数组
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 ),
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单的写了一段,感觉不是很好。