This is not working as I would expect it to be. I need to find the values in $foundfiles
which are NOT present in $results
. The keys will never match... I am only interested in comparing the capture#.jpg
.
$foundfiles example :
Array
(
[0] => capture1000.jpg
[1] => capture10045.jpg
[2] => capture10050.jpg
... and so on
$results example :
Array
(
[0] => capture27254.jpg
[1] => capture27352.jpg
[2] => capture27450.jpg
... and so on
$image_set = array_diff($foundfiles, $results);
In this example $image_set
should contain all values in $foundfiles
because none of them are present in $results
.