数结合并

WBOY
发布: 2016-06-13 11:32:39
原创
1086 人浏览过

数组合并
2个数组:

<br />//数组a<br />array (<br />  'SU13080800340' => <br />  array (<br />    0 => 'CVT121015001',<br />    1 => 'CVT121015002',<br />    2 => 'CVT121226001',<br />  ),<br />)<br />//数组b<br />array (<br />  'stock_no' => 'SU13080800340',<br />  'adress' => 'B',<br />  'arr_time' => '2013-08-14 09:00:00',<br />  'c_type' => 'P32E',<br />  'cust_no' => '310F61VA5A',<br />  'mount_total' => '3',<br />  'total' => '48',<br />  'c1_time' => '2013-08-10 15:00:00',<br />)<br />
登录后复制


求达到合并的效果:
<br />array (<br />'0' =><br />array (<br />  'stock_no' => 'SU13080800340',<br />  'adress' => 'B',<br />  'arr_time' => '2013-08-14 09:00:00',<br />  'c_type' => 'P32E',<br />  'cust_no' => '310F61VA5A',<br />  'mount_total' => '3',<br />  'total' => '48',<br />  'c1_time' => '2013-08-10 15:00:00',<br />  'packageno' => 'CVT121015001',<br />),<br />'1' =><br />array (<br />  'stock_no' => 'SU13080800340',<br />  'adress' => 'B',<br />  'arr_time' => '2013-08-14 09:00:00',<br />  'c_type' => 'P32E',<br />  'cust_no' => '310F61VA5A',<br />  'mount_total' => '3',<br />  'total' => '48',<br />  'c1_time' => '2013-08-10 15:00:00',<br />  'packageno' => 'CVT121015002',<br />),<br />'2' =><br />array (<br />  'stock_no' => 'SU13080800340',<br />  'adress' => 'B',<br />  'arr_time' => '2013-08-14 09:00:00',<br />  'c_type' => 'P32E',<br />  'cust_no' => '310F61VA5A',<br />  'mount_total' => '3',<br />  'total' => '48',<br />  'c1_time' => '2013-08-10 15:00:00',<br />  'packageno' => 'CVT121016001',<br />),<br />)<br />
登录后复制

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板