LMSouq
php-dev Open

How to include() all PHP files from a directory?

OC
occhiso
1 month ago
3 views
Problem Description
In PHP can I include a directory of scripts? i.e. Instead of: include('classes/Class1.php'); include('classes/Class2.php'); is there something like: include('classes/*'); Couldn't seem to find a good way of including a collection of about 10 sub-classes for a particular class.

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base