I've got two two-dimensional arrays and I need to filter the first array's rows by the second array's rows.
$array1 = [
["module1", "path/to/file.txt", ""],
["module2", "path/to/file2.txt", ""],
];
$array2 = [
["module1", "path/to/file.txt", ""]
];
I would think that doing array_diff($array1, $array2)
would give me where the first array's rows were not found in the second array, but I got an empty array.
I tried switching the parameters, and still produced an empty array, but this time without surprise. Can array_diff
not be used on arrays of arrays?