数结合并
程序员文章站
2022-06-07 19:42:47
...
数组合并
2个数组:
求达到合并的效果:
2个数组:
//数组a
array (
'SU13080800340' =>
array (
0 => 'CVT121015001',
1 => 'CVT121015002',
2 => 'CVT121226001',
),
)
//数组b
array (
'stock_no' => 'SU13080800340',
'adress' => 'B',
'arr_time' => '2013-08-14 09:00:00',
'c_type' => 'P32E',
'cust_no' => '310F61VA5A',
'mount_total' => '3',
'total' => '48',
'c1_time' => '2013-08-10 15:00:00',
)
求达到合并的效果:
array (
'0' =>
array (
'stock_no' => 'SU13080800340',
'adress' => 'B',
'arr_time' => '2013-08-14 09:00:00',
'c_type' => 'P32E',
'cust_no' => '310F61VA5A',
'mount_total' => '3',
'total' => '48',
'c1_time' => '2013-08-10 15:00:00',
'packageno' => 'CVT121015001',
),
'1' =>
array (
'stock_no' => 'SU13080800340',
'adress' => 'B',
'arr_time' => '2013-08-14 09:00:00',
'c_type' => 'P32E',
'cust_no' => '310F61VA5A',
'mount_total' => '3',
'total' => '48',
'c1_time' => '2013-08-10 15:00:00',
'packageno' => 'CVT121015002',
),
'2' =>
array (
'stock_no' => 'SU13080800340',
'adress' => 'B',
'arr_time' => '2013-08-14 09:00:00',
'c_type' => 'P32E',
'cust_no' => '310F61VA5A',
'mount_total' => '3',
'total' => '48',
'c1_time' => '2013-08-10 15:00:00',
'packageno' => 'CVT121016001',
),
)
专题推荐
-
独孤九贱-php全栈开发教程
全栈 170W+
主讲:Peter-Zhu 轻松幽默、简短易学,非常适合PHP学习入门
-
玉女心经-web前端开发教程
入门 80W+
主讲:灭绝师太 由浅入深、明快简洁,非常适合前端学习入门
-
天龙八部-实战开发教程
实战 120W+
主讲:西门大官人 思路清晰、严谨规范,适合有一定web编程基础学习
- 最新文章
- 热门排行
上一篇: 去掉iframe滚动条
网友评论
文明上网理性发言,请遵守 新闻评论服务协议
我要评论