chasethemetal Posted April 17, 2012 Share Posted April 17, 2012 I have two arrays. Array( [0] => Array ( [0] => 04/13/2012 ) [1] => Array ( [0] => 04/14/2012 )) AND Array( [0] => Array ( [0] => 0 [1] => 0 ) [1] => Array ( [0] => 1 [1] => 0 )) How can I merge the data so it will look like this... Array( [0] => Array ( [0] => 04/13/2012 [1] => 0 [2] => 0 ) [1] => Array ( [0] => 04/14/2012 [1] => 1 [2] => 0 )) Thankss any help is always appreciated! Link to comment Share on other sites More sharing options...
justsomeguy Posted April 17, 2012 Share Posted April 17, 2012 With numeric keys you'll need to use a loop that merges them manually. If the keys were strings then you could use array_merge_recursive. http://www.php.net/manual/en/function.array-merge-recursive.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.