PHP 8.5.0 Beta 1 available for testing

Voting

: one plus seven?
(Example: nine)

The Note You're Voting On

webmaster at thedigitalorchard dot ca
7 years ago
Instead of __autoload(), you can use spl_autoload_register() very easily, as per the documentation:

spl_autoload_register(function ($class) {
include 'classes/' . $class . '.class.php';
});

And this lets you have multiple autoloaders instead of one global one.

<< Back to user notes page

To Top