Problem Statement
How can you find elements present in one array but not in another?
Explanation
The array_diff function compares two or more arrays and returns values from the first array that are not present in the others.
Code Solution
SolutionRead Only
array_diff($arr1,$arr2);
Practice Sets
This question appears in the following practice sets:
