How do I remove an element from the first array if it's found from the 2nd array?

Array_1
Array
(
[0] => John
[1] => Don
[2] => Jamie
)

Array_2
Array
(
[0] => Mike
[1] => John
[2] => Jamie
[3] => David
)

So the output for Array_1 would be:
Array
(
[0] => Don
)

    I ended up using array_intersect but thanks for pointing me to the right path weedpacket

      Write a Reply...