We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38359
    • 93 Posts
    Hi,

    I have four arrays of document ids and I want to return only the ids that exist in all of the arrays.
    So for example if I had

    Array1 = 1,2,3
    Array2= 3.4.5

    Then 3 would be returned because it exists in both arrays.
    What's the best, most efficient way to do this?

    Can I just use array_intersect(Array1, Array2)?

    Thanks for your time! [ed. note: wilbobaggins last edited this post 13 years, 6 months ago.]