I have two arrays and the second array is like the following :
$array2 = ['android', 'iphone', 'windowsmobile'];
now the first array can be like either
$array1 = ['web', 'android', 'iphone'];
OR
$array1 = ['android']; // Not web
OR
$array1 = ['web', 'iphone']; // web+android
OR
$array1 = ['android', 'iphone'];
and never be web
alone.
and $array2
will be same always.
Now I need to check is there any element in the first array is not there in the second array and to get this value. In the first and third case it is web
and for the second case there is nothing.
How this can be done ?