I have two arrays from the database, one with all first names and one with all last names. I want to do the following:
First name array
0 => john
1 => jane
enter code here
Last name array
0 => doe
1 => joe
I want to add these two arrays together, in a way that the first name of the array key matches the last name of the same array key. For example, when I add these two together the outcome should be
0 => john doe
1 => jane joe
Any help?