开发者

Arrays in php, Compare 2 arrays and keep duplicate values

开发者 https://www.devze.com 2022-12-23 12:11 出处:网络
The following is 2 different definitions of the problem: How can I process 2 arrays so that I can keep the data of duplic开发者_Go百科ate array[key] values.

The following is 2 different definitions of the problem:

How can I process 2 arrays so that I can keep the data of duplic开发者_Go百科ate 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


array_intersect_assoc seems to be what you're looking for

0

精彩评论

暂无评论...
验证码 换一张
取 消