3

The following is 2 different definitions of the problem:

How can I process 2 arrays so that I can keep the data of duplicate array[key] values.

I have arrays A and B. I want to create array C with the children that their id/key values exist in both A and B arrays.

Thank you

1 Answer 1

8

array_intersect_assoc seems to be what you're looking for

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.