$dirs= new ArrayIterator(array('./', '/dir_two'));
$list = array();
foreach($dirs as $dir){
$dir_iterator = new RecursiveDirectoryIterator($dir);
$iterator = new RecursiveIteratorIterator($dir_iterator, RecursiveIteratorIterator::SELF_FIRST);
foreach($iterator as $file){
if(preg_match('~.*~',$file->getFilename()))
array_push($list,$file->getPathname());
}
}
print_r($list);