Requiring files?

Jemz

xmas tings.
Aug 6, 2013
166
17
I want to require all the class files I have in a folder.
PHP:
foreach (glob("classes/*.php") as $filename){
require_once $filename;
}
I currently use that to require all the files but I was wondering if there was any 'new' or easier way of doing without having to require_once all the files by hand, yano don't want to be out dated.
 

Users who are viewing this thread

Top