if ($dh = opendir('/path/vers/dir')) {
while (($file = readdir($dh)) !== false) {
if (preg_match('`myfile\.([0-z])`', $file) {
$content = file_get_contents('/path/vers/dir' . $file)
}
}
closedir($dh);
}