Jump to content


This topic is now archived and is closed to further replies.



Recommended Posts

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?


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.