- Read the file names from the array.
- Search the array value for the string "-dep" and if any string value contains "-dep", remove it.
- Pass the array as as value to another array
.
for($d=0; $d < $files; ++$d)
{
if(strpos($files[$d], "-dep") === true)
{
unset($files[$d]);
}
}
return array($dnum, $fnum, $dirs, $files);