i have these two feeds(feed1,feed2), they both provide some ID’S, I’m trying to find out by looping through both of them if i can match ID’S, and if their is a match don’t display that ID.
foreach($feed->data as $item){
echo $item->id;
}
foreach($feed2->data as $item){
echo $item->id;
}
this is my code in PHP for displaying all of the ID’s from two foreach loops, but i wanted them to be nested into each other, so if ID’s in feed1 and feed2 match don’t echo. so i presume their might be an if statement their somewhere. Thanks
First nested loop will echo item id from first feed which is not present in second and second foreach will echo id from second feed which is not present in first feed