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

后端 未结 2 882
野性不改
野性不改 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..

    0 讨论(0)
  • 2020-12-11 21:18

    The array_intersect() function might be the one you are looking for ;-)

    0 讨论(0)
提交回复
热议问题