I have two arrays: Array ( [0] => 2 [1] => 3 ) and Array ( [0] => 2 ).
Array ( [0] => 2 [1] => 3 )
Array ( [0] => 2 )
I want to get the value, which is not in second array. So I
you can use array_values(array_diff($arr1, $arr2)); if order doesn't matter
array_values(array_diff($arr1, $arr2));