I am having a problem with arrays.
What I have is a function that recursively searches through a directory and assigns the attributes of the files it finds to a multi-dimensional array.
What I would like to do is be able to print a list of the filenames $mill[$i]['name'] that aren't directories $mill[$i]['type'].
Where I'm having problems is when I try to do the following:
$mill = recurs_dir('.');
for ($i = 0; $i < count($mill); $i++) {
if ($mill[$i]['type'] = 'file') {
echo $mill[$i]['name']
}
}
This echoes all files regardless. Is there a better way????
D