chasethemetal Posted April 17, 2012 Report 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 Report 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
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now