php dirpath beberapa ekstensi file
$files = glob("/path/to/directory/*.{jpg,gif,png}", GLOB_BRACE);
print_r($files);
Geeky Bravo
$files = glob("/path/to/directory/*.{jpg,gif,png}", GLOB_BRACE);
print_r($files);