Answer the question
In order to leave comments, you need to log in
What is the advantage of class autoloader?
Simple code:
spl_autoload_register(function ($class) {
include 'user/app/' . $class . '.php';
});
$obj = new MyClass();
$obj->displayVar();
$obj = new MyClass();
$obj->displayVar();
Answer the question
In order to leave comments, you need to log in
after all, even if we connect them, but we don’t create an instance, then they still won’t be allocated resources ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question