$table = [
['AAA', 'BBB', 'CCC', 'DDD', 'EEE'],
[1, 2, 3, 4, 5],
[6, 7, 8, 9, 10],
[11, 12, 13, 14, 15]
];
将上面的配列转化成为:
[
[
"AAA"=> 1,
"BBB"=> 2,
"CCC"=> 3,
"DDD"=> 4,
"EEE"=> 5
],
[
"AAA"=> 6,
"BBB"=> 7,
"CCC"=> 8,
"DDD"=> 9,
"EEE"=> 10
],
[
"AAA"=> 11,
"BBB"=> 12,
"CCC"=> 13,
"DDD"=> 14,
"EEE"=> 15
]
]
折腾了一会,没做出来。
请帮忙给个解法,先谢谢了!