php get all php files in a directory
snippet in php

php get all php files in a directory

user955

foreach(glob('includes/*.php') as $file) {
    ...
}