I have two arrays of products, both formatted exactly the same, like so:
$products = array(
[0] => array(
['product_id'] => 33
['variation_id'] => 0
['product_price'] => 500.00
),
[1] => array(
['product_id'] => 48
['variation_id'] => 0
['product_price'] => 600.00
),
)
I would like to be able to return a list of only those products not found in the second array, based on the product ID.
I only care about those NOT found in the second array, not additional ones added to the first, so array_diff won't seem to do the trick.
additional ones added to the firstandthose not found in the second? are either of the posted solutions doing what you want, or are you looking for something else?