Array Question: return subset of items not shared by two arrays |
[eluser]gscharlemann[/eluser]
Hi I have two arrays: Code: $in_list = Array I would like to return an array that is the full_list minus the items in_list when comparing: Code: $full_list['id'] == $in_list['item_id'] Code: $items_to_remove = array();
[eluser]richzilla[/eluser]
php's native array_intersect function. http://php.net/manual/en/function.array-intersect.php |
Welcome Guest, Not a member yet? Register Sign In |