I have 2 arrays I want to get the values that are not the same but for some reason this is not working:
$newArray = array_unique(array_merge($array1, $array2)
var_dump(array1) = array(3) { [0]=> string(17) "verbal aggression" [1]=> string(19) "physical aggression" [2]=> string(3) "vol" }
var_dump(array2) = array(2) { [0]=> string(17) "verbal aggression" [1]=> string(19) "physical aggression" }
So I suspect $newArray to be:
array(1) { [0]=> string(3) "vol"" }