soltek Posted October 16, 2011 Share Posted October 16, 2011 Hey again, My purpose is to warn my customers that the products they've purchased will be having an update a day later. Displaying a message like «Tomorrow 2 of your products can be updated» » I have one table called Bought storing each purchase, with it's buyer and product id; » I have one table called Productsshedule that has the product ID. Also I have created an array that stores in the page which products the client has bought and another array with the products' updates comming on the next day. How can I make it so it looks into the matches between updates array and bought products array? Link to comment https://forums.phpfreaks.com/topic/249200-matching-two-arrays/ Share on other sites More sharing options...
silkfire Posted October 16, 2011 Share Posted October 16, 2011 Use array_intersect: All elements which the two arrays share will be part of a new array. Link to comment https://forums.phpfreaks.com/topic/249200-matching-two-arrays/#findComment-1279730 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.