Is there any way to make an inner join between two arrays in php? eg
If I have two arrays array1, array2
Entrance:
array1[0]['id']=1 , array1[1]['id']=2 , array1[2]['id']=3 array2[0]['id']=3 , array2[1]['id']=4 , array2[2]['id']=5
Output:
array2[0]['id']=3;
Is it possible to get common values โโwith any built-in functions?
Thanks Balan
source share