is there any way to get common values between two arrays in php?

后端 未结 2 917
野性不改
野性不改 2020-12-11 20:43

Is there a possibility of doing inner join between two arrays in php? for example

if i have two arrays array1,array2

Input :

array1[0][\'id\         


        
2条回答
  •  鱼传尺愫
    2020-12-11 21:16

    I couldn't exactly understand what you need.

    If i'm guessing right, i think u need intersection of two arrays..

    array_intersect can do this ...

    If this is not what u want, then please update your question with exact input and expected output..

提交回复
热议问题