Jump to content

Arrays


ktsirig

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

Link to comment
https://forums.phpfreaks.com/topic/2524-arrays/
Share on other sites

Archived

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

×
×
  • Create New...

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.