Jump to content

Removing array items using another array..


Scooby08

Recommended Posts

If I have 2 arrays, one that is my base array, and another that is the item to be removed array, and they are like so:

 

Base array

Array
(
    [0] => 608569
    [1] => 608570
    [2] => 608571
    [3] => 608572
)

 

Item to remove array

Array
(
    [0] => 608570
)

 

How would that be done? Is there a simple built in function for that, or do I have to foreach the arrays?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.