in php, if I have two arrays:
array1 = array('a', 'b', 'c');
array2 = array('b', 'c');
Is there a function of combination of functions that will compare the two arrays' values and return the keys from 1 array of the intersection?
If wanting the key
s from array1
, they would be 1
and 2
If wanting the key
s from array2
, they would be 0
and 1