ktsirig Posted September 18, 2005 Share Posted September 18, 2005 Hello everyone. Say you send MySQL two queries, and the two arrays that are created give these as results: a1 = { blue, red, green } a2 = { blue, yellow, green } I need to return 'blue' and 'green' to the user, that's my goal. Is in_array what I need? Can you please give me a hint as far as the coding is concerned? Thanx Link to comment https://forums.phpfreaks.com/topic/2524-arrays/ Share on other sites More sharing options...
effigy Posted September 19, 2005 Share Posted September 19, 2005 array_intersect Link to comment https://forums.phpfreaks.com/topic/2524-arrays/#findComment-8417 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.