I've got a little experience in PHP, but I mainly come from Python. The thing I so adore about Python is the way modules are handled. If I have a file called a.py in my directory, containing a class called MyClass I can simply import the class like this.
from a import MyClass
From PHP however, I know you can do:
include somefile.php
This imports and runs all code from the file, which makes it similar to the following in Python
from a import *
Doing a wildcard import however, leaves me clueless as to what I am actually importing and also causes namespace pollution. So my question; is there a way that I can import classes in PHP by naming them?