Jump to content


Photo

Arrays


  • Please log in to reply
1 reply to this topic

#1 ktsirig

ktsirig
  • Members
  • PipPipPip
  • Advanced Member
  • 49 posts

Posted 18 September 2005 - 09:58 AM

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

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 19 September 2005 - 08:04 PM

array_intersect
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users