Jump to content

Archived

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

ktsirig

Arrays

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?

Thanx

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.