I have 2 PHP arrays:
Array1:
1 = 'a',
2 = 'b',
3 = 'c',
4 = 'd',
5 = 'e',
6 = 'f',
Array2:
1 = 'c',
2 = 'e',
3 = 'f',
How can I compare them to get the result with the keys from the first array?
The desired result array:
3 = 'c',
5 = 'e',
6 = 'f',
I have tried a lot of different PHP array functions but I can't get an array that doesn't start the keys from 1 every time.
Any help much appreciated.
Thanks
Ben