Designing Interfaces in PHP
I was curious as to why we used
__DIR__ . '/*'
__DIR__ . '/classes'
since we were only looking for classes anyway.
So we can check every file inside every folder.
If we want to use a different file down the road that might not be inside the classes folder, this function will still work.
The function is looping through each directory that's inside the current directory- in search of matching files.
Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.
I forgot my password