I have an array of filenames and need to delete values based on whether the file exists on my server. Here is the array I'm working with:
$files = array(
'file1.htm',
'file2.htm',
'file3.htm',
'file4.htm'
);
So if files 3 & 4 aren't on my server, then the new array should be:
$files = array(
'file1.htm',
'file2.htm'
);