How to include() all PHP files from a directory? November 26, 2022 by Tarik foreach (glob("classes/*.php") as $filename) { include $filename; }