配列分割の問題
配列 a を次のように仮定します:
array (<br /> 0 => <br /> array (<br /> 'po_num' => 'DYNP-770266110-00',<br /> 'plant' => 'DYNP',<br /> 'get_date' => '2013-09-09',<br /> 'cust_no' => '12647212',<br /> 'total' => '60',<br /> 'snp' => '15',<br /> 'mount' => '4',<br /> 'lp_no' => 'P000000D',<br /> ),<br /> 1 => <br /> array (<br /> 'po_num' => 'DYNP-770266110-00',<br /> 'plant' => 'DYNP',<br /> 'get_date' => '2013-09-09',<br /> 'cust_no' => '12654172',<br /> 'total' => '615',<br /> 'snp' => '15',<br /> 'mount' => '41',<br /> 'lp_no' => 'P000000D',<br /> ),<br /> )
<br /> //b<br /> array (<br /> 0 => <br /> array (<br /> 'po_num' => 'DYNP-770266110-00',<br /> 'plant' => 'DYNP',<br /> 'get_date' => '2013-09-09',<br /> 'cust_no' => '12647212',<br /> 'total' => '60',<br /> 'snp' => '15',<br /> 'mount' => '4',<br /> 'lp_no' => 'P000000D',<br /> ),<br /> 1 => <br /> array (<br /> 'po_num' => 'DYNP-770266110-00',<br /> 'plant' => 'DYNP',<br /> 'get_date' => '2013-09-09',<br /> 'cust_no' => '12654172',<br /> 'total' => '165',<br /> 'snp' => '15',<br /> 'mount' => '11',<br /> 'lp_no' => 'P000000D',<br /> ),<br /> )<br /> //c<br /> array (<br /> 0 => <br /> array (<br /> 'po_num' => 'DYNP-770266110-00',<br /> 'plant' => 'DYNP',<br /> 'get_date' => '2013-09-09',<br /> 'cust_no' => '12647212',<br /> 'total' => '225',<br /> 'snp' => '15',<br /> 'mount' => '15',<br /> 'lp_no' => 'P000000D',<br /> ),<br /> )<br /> //d<br /> array (<br /> 0 => <br /> array (<br /> 'po_num' => 'DYNP-770266110-00',<br /> 'plant' => 'DYNP',<br /> 'get_date' => '2013-09-09',<br /> 'cust_no' => '12647212',<br /> 'total' => '225',<br /> 'snp' => '15',<br /> 'mount' => '15',<br /> 'lp_no' => 'P000000D',<br /> ),<br /> )<br />