For example, if I have two arrays:
$array1 = array('a', 'b', 'c', 'd');
$array2 = array('a', 'c', 'b', 'd');
Assuming that both arrays have similar orders (based on the last and first values), how would I check to see that are two differences in their key value pairings, in their defined orders?
As well as this, how could I return (possibly through another function), where exactly these differences are, by key?