Example that autoloads a class for use in wordpress.
The following example of autoloading may be used in the root of a plugin or theme. It will autoload PHP classes that are placed in the classes folder (relative to the file the script is placed in) and obviously deeper directories.
This example file has also some example classes and folders the illustrate the use of namespaces and directories.