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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/2524-arrays/#findComment-8417 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.