I have 2 set of 2d array and i want merge into 1 2d array. but the number of element in each array its not same and for the first 2 element is same and i don't want to duplicate it. here its is.
First 2d array:
Array(
[0] => Array
(
[0] => 25/2/2013
[1] => 8.45 a.m
[2] => 9.98
)
[1] => Array
(
[0] => 25/2/2013
[1] => 8.46 a.m
[2] => 9.02
)
)
second 2d array:
Array(
[0] => Array
(
[0] => 25/2/2013
[1] => 8.45 a.m
[2] => 1.23
[3] => 6.1
)
[1] => Array
(
[0] => 25/2/2013
[1] => 8.46 a.m
[2] => 1.75
[3] => 1.75
)
)
How do i get result as this:
Array(
[0] => Array
(
[0] => 25/2/2013
[1] => 8.45 a.m
[2] => 9.98
[3] => 1.23
[4] => 6.1
)
[1] => Array
(
[0] => 25/2/2013
[1] => 8.46 a.m
[2] => 9.02
[3] => 1.75
[4] => 1.75
)
)
here is var export for first array:
( 0 => array ( 0 => '5/2/2013', 1 => '9:31:00 AM', 2 => '0.395', 3 => '0.395', 4 => '302.855', 5 => '0.563', ), 1 => array ( 0 => '5/2/2013', 1 => '9:33:00 AM', 2 => '0.383', 3 => '0.383', 4 => '303.431', 5 => '0.563', )
and for second array:
( 0 => array ( 0 => '5/2/2013', 1 => '9:31:00 AM', 2 => '-1.000', 3 => '-1.000', 4 => '-1.000', 5 => '-1.670', 6 => '-1.000', 7 => '-11.000', ), 1 => array ( 0 => '5/2/2013', 1 => '9:33:00 AM', 2 => '-1.000', 3 => '-1.000', 4 => '-1.000', 5 => '-1.670', 6 => '-1.000', 7 => '-11.000', )