Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $files = array_merge (
- glob (__DIR__.'/inlcudes/*/*.php'),
- glob (__DIR__.'/includes/*.php')
- );
- if(!empty($files)) {
- array_walk ($files, function ($file) {
- require_once $file;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement