I am trying to merge to arrays that are results of SQL queries. Let's say we have these two arrays:
The result, using either array_merge() or the
operator is:
...which is simply the second array. I want the result to be:
Order is not particularly important. What can I do??
Any help is appreciated.
Code:
array 1
=======
DAN
JOHN
SUE
MIKE
JIM
FRANK
array 2
=======
DAN
JOHN
SUE
MIKE
JIM
ARNOLD
The result, using either array_merge() or the
Code:
+
Code:
DAN
JOHN
SUE
MIKE
JIM
ARNOLD
...which is simply the second array. I want the result to be:
Code:
DAN
JOHN
SUE
MIKE
JIM
FRANK
ARNOLD
Order is not particularly important. What can I do??
Any help is appreciated.