Hola! agradezco de antemano su ayuda :)
Tengo este arreglo:
[0] => Array
(
[PO] => 75624
[DATE] => 2014-03-03
[CODE] => HBJ-SP1328
[QTYC] => 1200
)
[1] => Array
(
[PO] => 75624
[DATE] => 2014-03-03
[CODE] => HBJ-SP264
[QTYC] => 1000
)
[2] => Array
(
[PO] => 76356
[DATE] => 2014-03-03
[CODE] => LQ*I4054
[QTYI] => 265
)
[3] => Array
(
[PO] => 76356
[DATE] => 2014-03-03
[CODE] => LQ*I4054
[QTYC] => 424
)
[4] => Array
(
[PO] => 76356
[DATE] => 2014-03-03
[CODE] => LQ*I6003
[QTYI] => 318
)
[5] => Array
(
[PO] => 76356
[DATE] => 2014-03-03
[CODE] => LQ*I6003
[QTYC] => 424
)
[6] => Array
(
[PO] => 76400
[DATE] => 2014-03-03
[CODE] => ALBUS
[QTYI] => 424
)
Y quisiera que me quedara asi: Es confuso explicar pero visualmente asi deberia quedar.
[0] => Array
(
[PO] => 75624
[DATE] => 2014-03-03
[CODE] => HBJ-SP1328
[QTYC] => 1200
[QTYI] => 0
)
[1] => Array
(
[PO] => 75624
[DATE] => 2014-03-03
[CODE] => HBJ-SP264
[QTYC] => 1000
[QTYI] => 0
)
[2] => Array
(
[PO] => 76356
[DATE] => 2014-03-03
[CODE] => LQ*I4054
[QTYC] => 424
[QTYI] => 265
)
[3] => Array
(
[PO] => 76356
[DATE] => 2014-03-03
[CODE] => LQ*I6003
[QTYC] => 424
[QTYI] => 318
)
[4] => Array
(
[PO] => 76400
[DATE] => 2014-03-03
[CODE] => ALBUS
[QTYC] => 0
[QTYI] => 424
)