- preg_match: documentation ( source)
<?php
$array = array(
0 => '.',
1 => '..',
2 => '_BACKUP',
3 => '_global.xml',
4 => '_icon',
5 => '_images',
6 => '_languages',
7 => '_settings.xml',
8 => '_sound',
9 => '_video',
10 => '_xml',
11 => 'fischerwirt.xls',
12 => 'panorama',
13 => 'thumbs',
);
foreach($array as $a) {
preg_match('.xls', $a);
}