欢迎我有一个问题,这可能很简单,但我找不到解决问题的方法。我有几个看起来像这样的数组:
'contract' =>
0 => '6'
1 => '6'
2 => '6'
'folder_id' =>
0 => '1'
1 => '1'
2 => '1'
'service' =>
0 => '2'
1 => '2'
2 => '2'
'value' =>
0 => '12'
1 => '12'
2 => '66'
'currency_id' =>
0 => '6'
1 => '9'
2 => '6'
我想操纵它们,这样我就可以得到类似的东西:
'0' =>
'contract' => '6'
'folder_id' => '1'
'service' => '2'
'value' => '12'
'currency_id' => '6'
'1' =>
'contract' => '6'
'folder_id' => '1'
'service' => '2'
'value' => '12'
'currency_id' => '9'
'2' =>
'contract' => '6'
'folder_id' => '1'
'service' => '2'
'value' => '66'
'currency_id' => '6'
试了很多次,都失败了